diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-07-17 00:49:41 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-07-17 00:49:41 +0200 |
| commit | 872c33fe5592eb84a2f6c01a2e47b72602b6139e (patch) | |
| tree | ed0b5d3203500b15a55801a009a0fec680b4a6db /src/downloadmanager.cpp | |
| parent | 9ddb26ea5100581c832920015f79de8d7366463f (diff) | |
Added new "Hide Uninstalled" and "Delete Uninstalled" options to downloads tab.
Diffstat (limited to 'src/downloadmanager.cpp')
| -rw-r--r-- | src/downloadmanager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 1a2934a5..0c83bf92 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -690,7 +690,13 @@ void DownloadManager::removeDownload(int index, bool deleteFile) emit aboutToUpdate();
if (index < 0) {
- DownloadState minState = index == -1 ? STATE_READY : STATE_INSTALLED;
+ DownloadState minState;
+ if (index == -3) {
+ minState = STATE_UNINSTALLED;
+ }
+ else
+ minState = index == -1 ? STATE_READY : STATE_INSTALLED;
+
index = 0;
for (QVector<DownloadInfo*>::iterator iter = m_ActiveDownloads.begin(); iter != m_ActiveDownloads.end();) {
if ((*iter)->m_State >= minState) {
|
