DeleteFiles: Fix compile with older Qt versions
This commit is contained in:
@@ -108,7 +108,7 @@ void DeleteFiles::ProcessSomeFiles() {
|
||||
|
||||
// We process files in batches so we can be cancelled part-way through.
|
||||
|
||||
const qint64 n = qMin(songs_.count(), static_cast<qint64>(progress_ + kBatchSize));
|
||||
const qint64 n = qMin(static_cast<qint64>(songs_.count()), static_cast<qint64>(progress_ + kBatchSize));
|
||||
for (; progress_ < n; ++progress_) {
|
||||
task_manager_->SetTaskProgress(task_id_, progress_, songs_.count());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user