summaryrefslogtreecommitdiff
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2018-07-17 02:08:17 +0200
committerGitHub <noreply@github.com>2018-07-17 02:08:17 +0200
commit103e3f3098539a8d3b75abc9bfb33344b2576ef9 (patch)
tree2d46b1c7f014021a6b3db1490a01fe827367c0e1 /src/downloadmanager.cpp
parent872c33fe5592eb84a2f6c01a2e47b72602b6139e (diff)
parent6552054e58d8c108c59b38335870529da78a27f1 (diff)
Merge pull request #438 from LostDragonist/Develop
Added support for selecting multiple mod for multiple modlist options. Added check for Windows Event Service before spawning new hooked processes.
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r--src/downloadmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp
index 0c83bf92..385d2246 100644
--- a/src/downloadmanager.cpp
+++ b/src/downloadmanager.cpp
@@ -1661,7 +1661,7 @@ void DownloadManager::nxmRequestFailed(QString gameName, int modID, int fileID,
void DownloadManager::downloadFinished(int index)
{
DownloadInfo *info;
- if (index)
+ if (index >= 0)
info = m_ActiveDownloads[index];
else
info = findDownload(this->sender(), &index);