diff options
| author | Silarn <jrim@rimpo.org> | 2018-04-05 23:57:24 -0500 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2018-04-05 23:57:24 -0500 |
| commit | 74dd2bb914a1f2a31506c3544b6ee198f65e2b6b (patch) | |
| tree | e1369fe841d48281f836434b25e8c76646e4eb06 /src | |
| parent | dcbcb29ec733801025556d294b90c9b8061a31e5 (diff) | |
Return extraction context menu to archive list
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 12 | ||||
| -rw-r--r-- | src/mainwindow.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0dbe4d53..faa4b880 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4345,6 +4345,18 @@ void MainWindow::displayColumnSelection(const QPoint &pos) }
}
+void MainWindow::on_bsaList_customContextMenuRequested(const QPoint &pos)
+{
+ m_ContextItem = ui->bsaList->itemAt(pos);
+
+// m_ContextRow = ui->bsaList->indexOfTopLevelItem(ui->bsaList->itemAt(pos));
+
+ QMenu menu;
+ menu.addAction(tr("Extract..."), this, SLOT(extractBSATriggered()));
+
+ menu.exec(ui->bsaList->mapToGlobal(pos));
+}
+
void MainWindow::on_bsaList_itemChanged(QTreeWidgetItem*, int)
{
m_ArchiveListWriter.write();
diff --git a/src/mainwindow.h b/src/mainwindow.h index f84931ca..d0957305 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -553,6 +553,7 @@ private slots: // ui slots void on_actionUpdate_triggered();
void on_actionEndorseMO_triggered();
+ void on_bsaList_customContextMenuRequested(const QPoint &pos);
void on_clearFiltersButton_clicked();
void on_btnRefreshData_clicked();
void on_categoriesList_customContextMenuRequested(const QPoint &pos);
|
