From d4a066dbd9f76f8dff2b4c04a1348aaf42b26395 Mon Sep 17 00:00:00 2001 From: Krzysztof Starecki Date: Thu, 14 Feb 2019 15:55:53 +0100 Subject: Fix modId behavior on 'Query Info' cancel (issue #446) --- src/downloadmanager.cpp | 3 +- src/organizer_en.ts | 80 ++++++++++++++++++++++++------------------------- 2 files changed, 42 insertions(+), 41 deletions(-) (limited to 'src') 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::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; } - + Please select the source game code for %1 - + VisitNexus: invalid download index %1 - + Nexus ID for this Mod is unknown - + OpenFile: invalid download index %1 - + OpenFileInDownloadsFolder: invalid download index %1 - + get pending: invalid download index %1 - + get path: invalid download index %1 - + Main - + Update - + Optional - + Old - + Misc - + Unknown - + display name: invalid download index %1 - + file name: invalid download index %1 - + file time: invalid download index %1 - + file size: invalid download index %1 - + progress: invalid download index %1 - + state: invalid download index %1 - + infocomplete: invalid download index %1 - - + + mod id: invalid download index %1 - + ishidden: invalid download index %1 - + file info: invalid download index %1 - + mark installed: invalid download index %1 - + mark uninstalled: invalid download index %1 - + Memory allocation error (in processing progress event). - + Memory allocation error (in processing downloaded data). - + Information updated - - + + No matching file found on Nexus! Maybe this file is no longer available or it was renamed? - + No file on Nexus matches the selected file by name. Please manually choose the correct one. - + No download server available. Please try again later. - + Failed to request file info from nexus: %1 - + Warning: Content type is: %1 - + Download header content length: %1 downloaded file size: %2 - + Download failed: %1 (%2) - + We were unable to download the file due to errors after four retries. There may be an issue with the Nexus servers. - + failed to re-open %1 - + Unable to write download to drive (return %1). Check the drive's available storage. -- cgit v1.3.1