Progress works for null downloads (header checks)

This commit is contained in:
Petr Mrázek 2013-09-10 00:34:34 +02:00
parent 91a3e650e9
commit 108a5a677c

View File

@ -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())