summaryrefslogtreecommitdiff
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-01-27 23:20:53 -0600
committerSilarn <jrim@rimpo.org>2019-02-18 21:28:07 -0600
commitf6dcc77158fef63b80d00e33d02363f2eb69b2bc (patch)
tree8bcc2a73ba1fd96e8e048bf2701de46ce88a5871 /src/downloadmanager.cpp
parentb4a9dd410c44e99dd1eb6775deea50f042899e15 (diff)
Filter deleted downloads from the download query dialog
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 8f36b9cf..2ba46d74 100644
--- a/src/downloadmanager.cpp
+++ b/src/downloadmanager.cpp
@@ -1485,7 +1485,8 @@ void DownloadManager::nxmFilesAvailable(QString, int, QVariant userData, QVarian
SelectionDialog selection(tr("No file on Nexus matches the selected file by name. Please manually choose the correct one."));
for (QVariant file : result) {
QVariantMap fileInfo = file.toMap();
- selection.addChoice(fileInfo["file_name"].toString(), "", file);
+ if (fileInfo["category_id"].toInt() != 6)
+ selection.addChoice(fileInfo["file_name"].toString(), "", file);
}
if (selection.exec() == QDialog::Accepted) {
QVariantMap fileInfo = selection.getChoiceData().toMap();