Change bool/int condition

This commit is contained in:
Jonas Kvinge
2021-06-22 13:54:58 +02:00
parent 58a5367015
commit 584f5e5935
34 changed files with 61 additions and 61 deletions

View File

@@ -87,7 +87,7 @@ void TaskManager::SetTaskProgress(const int id, const qint64 progress, const qin
Task &t = tasks_[id];
t.progress = progress;
if (max) t.progress_max = max;
if (max > 0) t.progress_max = max;
}
emit TasksChanged();
@@ -101,7 +101,7 @@ void TaskManager::IncreaseTaskProgress(const int id, const qint64 progress, cons
Task &t = tasks_[id];
t.progress += progress;
if (max) t.progress_max = max;
if (max > 0) t.progress_max = max;
}
emit TasksChanged();