summaryrefslogtreecommitdiff
path: root/src/downloadlistwidget.cpp
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-07-16 20:56:47 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-07-16 20:56:47 +0200
commit2524d65441e99cbb14037144b8af60e1d25e1179 (patch)
treeaba253edda27662b694d44d8377f968209ebe6c6 /src/downloadlistwidget.cpp
parent5efddbd5156f914de9406775f06111b899060177 (diff)
Added "Open in Folder" option to downloads tab.
Diffstat (limited to 'src/downloadlistwidget.cpp')
-rw-r--r--src/downloadlistwidget.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/downloadlistwidget.cpp b/src/downloadlistwidget.cpp
index 5ab5d397..0ef408fb 100644
--- a/src/downloadlistwidget.cpp
+++ b/src/downloadlistwidget.cpp
@@ -272,6 +272,10 @@ void DownloadListWidgetDelegate::issueVisitOnNexus()
emit visitOnNexus(m_ContextRow);
}
+void DownloadListWidgetDelegate::issueOpenInDownloadsFolder()
+{
+ emit openInDownloadsFolder(m_ContextRow);
+}
void DownloadListWidgetDelegate::issueCancel()
{
@@ -352,6 +356,8 @@ bool DownloadListWidgetDelegate::editorEvent(QEvent *event, QAbstractItemModel *
}else {
menu.addAction(tr("Visit on Nexus"), this,SLOT(issueVisitOnNexus()));
}
+
+ menu.addAction(tr("Show in Folder"), this, SLOT(issueOpenInDownloadsFolder()));
menu.addSeparator();
@@ -364,9 +370,11 @@ bool DownloadListWidgetDelegate::editorEvent(QEvent *event, QAbstractItemModel *
} else if (state == DownloadManager::STATE_DOWNLOADING){
menu.addAction(tr("Cancel"), this, SLOT(issueCancel()));
menu.addAction(tr("Pause"), this, SLOT(issuePause()));
+ menu.addAction(tr("Show in Folder"), this, SLOT(issueOpenInDownloadsFolder()));
} else if ((state == DownloadManager::STATE_PAUSED) || (state == DownloadManager::STATE_ERROR) || (state == DownloadManager::STATE_PAUSING)) {
- menu.addAction(tr("Remove"), this, SLOT(issueDelete()));
+ menu.addAction(tr("Delete"), this, SLOT(issueDelete()));
menu.addAction(tr("Resume"), this, SLOT(issueResume()));
+ menu.addAction(tr("Show in Folder"), this, SLOT(issueOpenInDownloadsFolder()));
}
menu.addSeparator();