diff options
| author | Silarn <jrim@rimpo.org> | 2019-01-27 23:20:53 -0600 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-02-18 21:28:07 -0600 |
| commit | f6dcc77158fef63b80d00e33d02363f2eb69b2bc (patch) | |
| tree | 8bcc2a73ba1fd96e8e048bf2701de46ce88a5871 /src | |
| parent | b4a9dd410c44e99dd1eb6775deea50f042899e15 (diff) | |
Filter deleted downloads from the download query dialog
Diffstat (limited to 'src')
| -rw-r--r-- | src/downloadmanager.cpp | 3 |
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(); |
