summaryrefslogtreecommitdiff
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-02-19 20:32:44 +0100
committerTannin <devnull@localhost>2013-02-19 20:32:44 +0100
commit2c1fad4d986a3d94834215ceb6b4160bbda9e4fd (patch)
treeeddcee4948122914fa6226d3fe790e8f499c5a71 /src/downloadmanager.cpp
parentfba05e7fabf357709103be4049c291549297eefe (diff)
- fixed broken help menu
- work towards resume of failed downloads
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r--src/downloadmanager.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}
}