|
@@ -73,17 +73,19 @@ void CDownloadManager::downloadFinished(QNetworkReply * reply)
|
|
if(possibleRedirectUrl.isValid())
|
|
if(possibleRedirectUrl.isValid())
|
|
{
|
|
{
|
|
QString filename;
|
|
QString filename;
|
|
|
|
+ qint64 totalSize = 0;
|
|
|
|
|
|
for(int i = 0; i< currentDownloads.size(); ++i)
|
|
for(int i = 0; i< currentDownloads.size(); ++i)
|
|
{
|
|
{
|
|
if(currentDownloads[i].file == file.file)
|
|
if(currentDownloads[i].file == file.file)
|
|
{
|
|
{
|
|
filename = currentDownloads[i].filename;
|
|
filename = currentDownloads[i].filename;
|
|
|
|
+ totalSize = currentDownloads[i].totalSize;
|
|
currentDownloads.removeAt(i);
|
|
currentDownloads.removeAt(i);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- downloadFile(qurl, filename, file.totalSize);
|
|
|
|
|
|
+ downloadFile(qurl, filename, totalSize);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|