diff options
author | Sky <git@bunnies.cc> | 2013-10-26 11:13:14 +0100 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-10-26 11:13:14 +0100 |
commit | 1f28a3b8af228ec40412571859f15ea216ccb52a (patch) | |
tree | 975225cfc5981d9f8e5b79ba224db02782aa4faf /logic/net/DownloadJob.cpp | |
parent | cf07b90bdaf7dda2cbdd8ae9a7212c04badd0b09 (diff) | |
parent | c467ebf1327d6266fc51443edfac6f0b536b6602 (diff) | |
download | MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.tar MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.tar.gz MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.tar.lz MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.tar.xz MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.zip |
Merge branch 'develop'
Diffstat (limited to 'logic/net/DownloadJob.cpp')
-rw-r--r-- | logic/net/DownloadJob.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/logic/net/DownloadJob.cpp b/logic/net/DownloadJob.cpp index fa3e655e..38716a02 100644 --- a/logic/net/DownloadJob.cpp +++ b/logic/net/DownloadJob.cpp @@ -56,6 +56,8 @@ void DownloadJob::partSucceeded(int index) num_succeeded++; QLOG_INFO() << m_job_name.toLocal8Bit() << "progress:" << num_succeeded << "/" << downloads.size(); + emit filesProgress(num_succeeded, num_failed, downloads.size()); + if (num_failed + num_succeeded == downloads.size()) { if (num_failed) @@ -78,6 +80,7 @@ void DownloadJob::partFailed(int index) { QLOG_ERROR() << "Part" << index << "failed 3 times (" << downloads[index]->m_url << ")"; num_failed++; + emit filesProgress(num_succeeded, num_failed, downloads.size()); if (num_failed + num_succeeded == downloads.size()) { QLOG_ERROR() << m_job_name.toLocal8Bit() << "failed."; |