summaryrefslogtreecommitdiffstats
path: root/logic/BaseUpdate.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-18 00:08:42 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-18 00:08:42 +0200
commit930b07afd4229e952d0cd47ca62cd94235499a0c (patch)
tree34cd74c3652da4b3ad0fd008faa2ab67adb4901f /logic/BaseUpdate.cpp
parent5cd3420c46e0b54f1479ddf720a8c9131c460a5e (diff)
parentb979d0ce5da515793a02802a6421ef607a498323 (diff)
downloadMultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.tar
MultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.tar.gz
MultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.tar.lz
MultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.tar.xz
MultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.zip
Merge branch 'feature_library_model' into develop
Diffstat (limited to 'logic/BaseUpdate.cpp')
-rw-r--r--logic/BaseUpdate.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/logic/BaseUpdate.cpp b/logic/BaseUpdate.cpp
index b086ab14..02b29d32 100644
--- a/logic/BaseUpdate.cpp
+++ b/logic/BaseUpdate.cpp
@@ -7,7 +7,5 @@ BaseUpdate::BaseUpdate ( BaseInstance* inst, QObject* parent ) : Task ( parent )
void BaseUpdate::updateDownloadProgress(qint64 current, qint64 total)
{
- // The progress on the current file is current / total
- float currentDLProgress = (float) current / (float) total;
- setProgress((int)(currentDLProgress * 100)); // convert to percentage
+ emit progress(current, total);
} \ No newline at end of file