mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
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".
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user