diff options
| author | Krzysztof Starecki <krzysztof.starecki@gmail.com> | 2019-02-14 15:55:53 +0100 |
|---|---|---|
| committer | Krzysztof Starecki <krzysztof.starecki@gmail.com> | 2019-02-14 15:55:53 +0100 |
| commit | d4a066dbd9f76f8dff2b4c04a1348aaf42b26395 (patch) | |
| tree | 486a835f2f131cb960a32ca74d0ef5e0eb0fd29d /src | |
| parent | 777ebdd922243a6ae46c37789d4feeeba277d5b9 (diff) | |
Fix modId behavior on 'Query Info' cancel (issue #446)
Diffstat (limited to 'src')
| -rw-r--r-- | src/downloadmanager.cpp | 3 | ||||
| -rw-r--r-- | src/organizer_en.ts | 80 |
2 files changed, 42 insertions, 41 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;
}
}
diff --git a/src/organizer_en.ts b/src/organizer_en.ts index fea69f69..ced5b0cb 100644 --- a/src/organizer_en.ts +++ b/src/organizer_en.ts @@ -678,194 +678,194 @@ p, li { white-space: pre-wrap; } <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="884"/> + <location filename="downloadmanager.cpp" line="885"/> <source>Please select the source game code for %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="903"/> + <location filename="downloadmanager.cpp" line="904"/> <source>VisitNexus: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="924"/> + <location filename="downloadmanager.cpp" line="925"/> <source>Nexus ID for this Mod is unknown</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="931"/> + <location filename="downloadmanager.cpp" line="932"/> <source>OpenFile: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="948"/> + <location filename="downloadmanager.cpp" line="949"/> <source>OpenFileInDownloadsFolder: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="984"/> + <location filename="downloadmanager.cpp" line="985"/> <source>get pending: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="993"/> + <location filename="downloadmanager.cpp" line="994"/> <source>get path: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1002"/> + <location filename="downloadmanager.cpp" line="1003"/> <source>Main</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1003"/> + <location filename="downloadmanager.cpp" line="1004"/> <source>Update</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1004"/> + <location filename="downloadmanager.cpp" line="1005"/> <source>Optional</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1005"/> + <location filename="downloadmanager.cpp" line="1006"/> <source>Old</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1006"/> + <location filename="downloadmanager.cpp" line="1007"/> <source>Misc</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1007"/> + <location filename="downloadmanager.cpp" line="1008"/> <source>Unknown</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1014"/> + <location filename="downloadmanager.cpp" line="1015"/> <source>display name: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1034"/> + <location filename="downloadmanager.cpp" line="1035"/> <source>file name: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1043"/> + <location filename="downloadmanager.cpp" line="1044"/> <source>file time: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1057"/> + <location filename="downloadmanager.cpp" line="1058"/> <source>file size: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1067"/> + <location filename="downloadmanager.cpp" line="1068"/> <source>progress: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1077"/> + <location filename="downloadmanager.cpp" line="1078"/> <source>state: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1087"/> + <location filename="downloadmanager.cpp" line="1088"/> <source>infocomplete: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1102"/> - <location filename="downloadmanager.cpp" line="1110"/> + <location filename="downloadmanager.cpp" line="1103"/> + <location filename="downloadmanager.cpp" line="1111"/> <source>mod id: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1118"/> + <location filename="downloadmanager.cpp" line="1119"/> <source>ishidden: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1127"/> + <location filename="downloadmanager.cpp" line="1128"/> <source>file info: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1137"/> + <location filename="downloadmanager.cpp" line="1138"/> <source>mark installed: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1182"/> + <location filename="downloadmanager.cpp" line="1183"/> <source>mark uninstalled: invalid download index %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1355"/> + <location filename="downloadmanager.cpp" line="1356"/> <source>Memory allocation error (in processing progress event).</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1365"/> + <location filename="downloadmanager.cpp" line="1366"/> <source>Memory allocation error (in processing downloaded data).</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1491"/> + <location filename="downloadmanager.cpp" line="1492"/> <source>Information updated</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1493"/> - <location filename="downloadmanager.cpp" line="1507"/> + <location filename="downloadmanager.cpp" line="1494"/> + <location filename="downloadmanager.cpp" line="1508"/> <source>No matching file found on Nexus! Maybe this file is no longer available or it was renamed?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1495"/> + <location filename="downloadmanager.cpp" line="1496"/> <source>No file on Nexus matches the selected file by name. Please manually choose the correct one.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1624"/> + <location filename="downloadmanager.cpp" line="1625"/> <source>No download server available. Please try again later.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1667"/> + <location filename="downloadmanager.cpp" line="1668"/> <source>Failed to request file info from nexus: %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1694"/> + <location filename="downloadmanager.cpp" line="1695"/> <source>Warning: Content type is: %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1699"/> + <location filename="downloadmanager.cpp" line="1700"/> <source>Download header content length: %1 downloaded file size: %2</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1701"/> + <location filename="downloadmanager.cpp" line="1702"/> <source>Download failed: %1 (%2)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1723"/> + <location filename="downloadmanager.cpp" line="1724"/> <source>We were unable to download the file due to errors after four retries. There may be an issue with the Nexus servers.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1806"/> + <location filename="downloadmanager.cpp" line="1807"/> <source>failed to re-open %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="downloadmanager.cpp" line="1847"/> + <location filename="downloadmanager.cpp" line="1848"/> <source>Unable to write download to drive (return %1). Check the drive's available storage. |
