diff options
| author | Frederik “Freso” S. Olesen <freso.dk@gmail.com> | 2018-08-06 12:21:02 +0200 |
|---|---|---|
| committer | Frederik “Freso” S. Olesen <freso.dk@gmail.com> | 2018-08-06 12:21:02 +0200 |
| commit | 796224d73369e55b278aa1be1a13f357b094e49c (patch) | |
| tree | 0a7c5e9010732075f0cf69e2e4b1d9507b061214 /src/downloadlistwidgetcompact.cpp | |
| parent | 1e4b5d2436df759dead3f7c9da9c928da3ff3047 (diff) | |
Add new "Open File" right-click dialog for Downloads
This enables the user to directly open the downloaded archived/file
which can be useful for e.g., inspection of what's inside or if they
need to copy files from inside the archive to somewhere else. Saves a
step compared to "Show in Folder" and then opening the file.
Diffstat (limited to 'src/downloadlistwidgetcompact.cpp')
| -rw-r--r-- | src/downloadlistwidgetcompact.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/downloadlistwidgetcompact.cpp b/src/downloadlistwidgetcompact.cpp index 663a224e..710ecadc 100644 --- a/src/downloadlistwidgetcompact.cpp +++ b/src/downloadlistwidgetcompact.cpp @@ -247,6 +247,11 @@ void DownloadListWidgetCompactDelegate::issueVisitOnNexus() emit visitOnNexus(m_ContextIndex.row());
}
+void DownloadListWidgetDelegate::issueOpenFile()
+{
+ emit openFile(m_ContextIndex.row());
+}
+
void DownloadListWidgetCompactDelegate::issueOpenInDownloadsFolder()
{
emit openInDownloadsFolder(m_ContextIndex.row());
@@ -361,6 +366,7 @@ bool DownloadListWidgetCompactDelegate::editorEvent(QEvent *event, QAbstractItem }else {
menu.addAction(tr("Visit on Nexus"), this, SLOT(issueVisitOnNexus()));
}
+ menu.addAction(tr("Open File"), this, SLOT(issueOpenFile()));
menu.addAction(tr("Show in Folder"), this, SLOT(issueOpenInDownloadsFolder()));
menu.addSeparator();
menu.addAction(tr("Delete"), this, SLOT(issueDelete()));
|
