diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-07-16 15:00:35 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-07-16 15:46:43 -0500 |
| commit | 942e656a71f452cd3cdbca2a4264db3cc2014ae9 (patch) | |
| tree | ac8bd163de4a75cbb915ae1aab3cdb0f20234162 /src | |
| parent | 7f3dc586b0422a31d34d00fcf23b2f2922418650 (diff) | |
Fix download index in downloadFinished
An index of 0 is valid as this is a bog standard array. This resolves an instance of the warning "no download index 0".
Diffstat (limited to 'src')
| -rw-r--r-- | src/downloadmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 1a2934a5..9e523bf9 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -1655,7 +1655,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);
|
