From 2c1fad4d986a3d94834215ceb6b4160bbda9e4fd Mon Sep 17 00:00:00 2001 From: Tannin Date: Tue, 19 Feb 2013 20:32:44 +0100 Subject: - fixed broken help menu - work towards resume of failed downloads --- src/downloadmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/downloadmanager.cpp') diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 6f29bbf1..ab1f2613 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -144,6 +144,7 @@ void DownloadManager::refreshList() DownloadInfo *info = new DownloadInfo; info->m_State = STATE_READY; if (file.endsWith(UNFINISHED)) { +#pragma message("files not correctly named _unfinished") info->m_FileName = file.mid(0, file.length() - strlen(UNFINISHED)); info->m_State = STATE_PAUSED; } else { @@ -587,7 +588,6 @@ void DownloadManager::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) return; } int index = 0; - DownloadInfo *info = findDownload(this->sender(), &index); if (info != NULL) { if (info->m_State == STATE_CANCELING) { @@ -855,7 +855,7 @@ void DownloadManager::downloadFinished() (reply->error() != QNetworkReply::NoError) || reply->header(QNetworkRequest::ContentTypeHeader).toString().startsWith("text", Qt::CaseInsensitive)) { emit showMessage(tr("Download failed: %1 (%2)").arg(reply->errorString()).arg(reply->error())); - info->m_State = STATE_CANCELING; + info->m_State = STATE_PAUSING; } } -- cgit v1.3.1