diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-02-14 16:31:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-14 16:31:06 +0100 |
| commit | 749ceff04f24d7560497d8b5d3c62ea1b8e2563e (patch) | |
| tree | 486a835f2f131cb960a32ca74d0ef5e0eb0fd29d /src/downloadmanager.cpp | |
| parent | 777ebdd922243a6ae46c37789d4feeeba277d5b9 (diff) | |
| parent | d4a066dbd9f76f8dff2b4c04a1348aaf42b26395 (diff) | |
Merge pull request #652 from przester/bugfix-446
Fix modId behavior on 'Query Info' cancel (issue #446)
Diffstat (limited to 'src/downloadmanager.cpp')
| -rw-r--r-- | src/downloadmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 1e4ec1f4..ab8da7b8 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -875,7 +875,8 @@ void DownloadManager::queryInfo(int index) std::numeric_limits<int>::max(), 1, &ok);
// careful now: while the dialog was displayed, events were processed.
// the download list might have changed and our info-ptr invalidated.
- m_ActiveDownloads[index]->m_FileInfo->modID = modId;
+ if (ok)
+ m_ActiveDownloads[index]->m_FileInfo->modID = modId;
return;
}
}
|
