From f6dcc77158fef63b80d00e33d02363f2eb69b2bc Mon Sep 17 00:00:00 2001 From: Silarn Date: Sun, 27 Jan 2019 23:20:53 -0600 Subject: Filter deleted downloads from the download query dialog --- src/downloadmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/downloadmanager.cpp') 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(); -- cgit v1.3.1