summaryrefslogtreecommitdiff
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorKrzysztof Starecki <krzysztof.starecki@gmail.com>2019-02-14 15:55:53 +0100
committerKrzysztof Starecki <krzysztof.starecki@gmail.com>2019-02-14 15:55:53 +0100
commitd4a066dbd9f76f8dff2b4c04a1348aaf42b26395 (patch)
tree486a835f2f131cb960a32ca74d0ef5e0eb0fd29d /src/downloadmanager.cpp
parent777ebdd922243a6ae46c37789d4feeeba277d5b9 (diff)
Fix modId behavior on 'Query Info' cancel (issue #446)
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r--src/downloadmanager.cpp3
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;
}
}