summaryrefslogtreecommitdiffstats
path: root/logic/net/DownloadJob.cpp
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-26 11:13:14 +0100
committerSky <git@bunnies.cc>2013-10-26 11:13:14 +0100
commit1f28a3b8af228ec40412571859f15ea216ccb52a (patch)
tree975225cfc5981d9f8e5b79ba224db02782aa4faf /logic/net/DownloadJob.cpp
parentcf07b90bdaf7dda2cbdd8ae9a7212c04badd0b09 (diff)
parentc467ebf1327d6266fc51443edfac6f0b536b6602 (diff)
downloadMultiMC-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.cpp3
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.";