summaryrefslogtreecommitdiffstats
path: root/logic/BaseUpdate.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-18 00:00:35 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-18 00:00:35 +0200
commitb979d0ce5da515793a02802a6421ef607a498323 (patch)
tree1431d15e7a3e89e87708564a5be9fea05a5647ab /logic/BaseUpdate.cpp
parentd38b90530b3ba3a49c4eb072eb344ae2b0836913 (diff)
downloadMultiMC-b979d0ce5da515793a02802a6421ef607a498323.tar
MultiMC-b979d0ce5da515793a02802a6421ef607a498323.tar.gz
MultiMC-b979d0ce5da515793a02802a6421ef607a498323.tar.lz
MultiMC-b979d0ce5da515793a02802a6421ef607a498323.tar.xz
MultiMC-b979d0ce5da515793a02802a6421ef607a498323.zip
Implement legacy forge button!
Many refactors of the task system. Progress dialog now accepts generic ProgressProvider objects
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