From 108a5a677c4bf248b70e77046502ea96bd9cfe65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 10 Sep 2013 00:34:34 +0200 Subject: [PATCH] Progress works for null downloads (header checks) --- logic/net/DownloadJob.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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())