summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-07-17 18:35:32 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-07-17 18:35:32 +0200
commit344b83957e0f4491925055feab38091fdee4e751 (patch)
tree3c280e9b3722119ef6fe815221c5931066239bd0 /src
parent023cacab7fc2a9c36749fe235255fce8c4edd65b (diff)
Revert "Fix download index in downloadFinished"
This reverts commit 942e656a71f452cd3cdbca2a4264db3cc2014ae9.
Diffstat (limited to 'src')
-rw-r--r--src/downloadmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp
index beb498c1..67c43d4b 100644
--- a/src/downloadmanager.cpp
+++ b/src/downloadmanager.cpp
@@ -1671,7 +1671,7 @@ void DownloadManager::nxmRequestFailed(QString gameName, int modID, int fileID,
void DownloadManager::downloadFinished(int index)
{
DownloadInfo *info;
- if (index >= 0)
+ if (index)
info = m_ActiveDownloads[index];
else
info = findDownload(this->sender(), &index);