diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-07-26 17:55:29 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-07-26 17:55:29 +0200 |
commit | d8caab515aa641ec901592d40b5d30c6dfd282f5 (patch) | |
tree | 612b322374083309027204b656d4dc0a78780de8 /logic/tasks/SequentialTask.cpp | |
parent | 6310f6569c2630f27ad72dc0a5fef9f9fec5a88c (diff) | |
download | PrismLauncher-d8caab515aa641ec901592d40b5d30c6dfd282f5.tar.gz PrismLauncher-d8caab515aa641ec901592d40b5d30c6dfd282f5.tar.bz2 PrismLauncher-d8caab515aa641ec901592d40b5d30c6dfd282f5.zip |
GH-1053 add back update progress dialog
Diffstat (limited to 'logic/tasks/SequentialTask.cpp')
-rw-r--r-- | logic/tasks/SequentialTask.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/logic/tasks/SequentialTask.cpp b/logic/tasks/SequentialTask.cpp index f744d273..ac0e7820 100644 --- a/logic/tasks/SequentialTask.cpp +++ b/logic/tasks/SequentialTask.cpp @@ -48,12 +48,8 @@ void SequentialTask::subTaskProgress(qint64 current, qint64 total) { if(total == 0) { - setProgress(0); + setProgress(0, 100); return; } - auto dcurrent = (double) current; - auto dtotal = (double) total; - auto partial = ((dcurrent / dtotal) * 100.0f)/* / double(m_queue.size())*/; - // auto bigpartial = double(m_currentIndex) * 100.0f / double(m_queue.size()); - setProgress(partial); + setProgress(current, total); } |