mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Right click on vertical header to delete the selected record(s)
The text is got from the "Delete record" button, so the text is updated to "Delete records" when appropriate. See feature request #1283
This commit is contained in:
@@ -2452,6 +2452,13 @@ void MainWindow::showRecordPopupMenu(const QPoint& pos)
|
||||
duplicateRecord(row);
|
||||
});
|
||||
|
||||
QAction* deleteRecordAction = new QAction(ui->buttonDeleteRecord->text(), &popupRecordMenu);
|
||||
popupRecordMenu.addAction(deleteRecordAction);
|
||||
|
||||
connect(deleteRecordAction, &QAction::triggered, [&]() {
|
||||
deleteRecord();
|
||||
});
|
||||
|
||||
popupRecordMenu.exec(ui->dataTable->verticalHeader()->mapToGlobal(pos));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user