DeleteFiles: Fix compile with older Qt versions

This commit is contained in:
Jonas Kvinge
2021-10-30 03:13:55 +02:00
parent 7d5c263ab2
commit 8b8e427a2b

View File

@@ -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());