diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-10 00:34:34 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-10 00:34:34 +0200 |
commit | 108a5a677c4bf248b70e77046502ea96bd9cfe65 (patch) | |
tree | 8e02f52e861c1708b6dbff558e3f5b6338f38aca /logic | |
parent | 91a3e650e98c289ec183e8c4091da0dae0968f88 (diff) | |
download | MultiMC-108a5a677c4bf248b70e77046502ea96bd9cfe65.tar MultiMC-108a5a677c4bf248b70e77046502ea96bd9cfe65.tar.gz MultiMC-108a5a677c4bf248b70e77046502ea96bd9cfe65.tar.lz MultiMC-108a5a677c4bf248b70e77046502ea96bd9cfe65.tar.xz MultiMC-108a5a677c4bf248b70e77046502ea96bd9cfe65.zip |
Progress works for null downloads (header checks)
Diffstat (limited to 'logic')
-rw-r--r-- | logic/net/DownloadJob.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/net/DownloadJob.cpp b/logic/net/DownloadJob.cpp index 090df260..9b083b6b 100644 --- a/logic/net/DownloadJob.cpp +++ b/logic/net/DownloadJob.cpp @@ -37,6 +37,10 @@ CacheDownloadPtr DownloadJob::add ( QUrl url, MetaEntryPtr entry) void DownloadJob::partSucceeded ( int index ) { + // do progress. all slots are 1 in size at least + auto & slot = parts_progress[index]; + partProgress ( index, slot.second , slot.second ); + num_succeeded++; qDebug() << m_job_name.toLocal8Bit() << " progress: " << num_succeeded << "/" << downloads.size(); if(num_failed + num_succeeded == downloads.size()) |