mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Prevent crash when removing records
This commit is contained in:
@@ -577,6 +577,10 @@ void MainWindow::deleteRecord()
|
||||
{
|
||||
if(ui->dataTable->selectionModel()->hasSelection())
|
||||
{
|
||||
// If only filter header is selected
|
||||
if(ui->dataTable->selectionModel()->selectedIndexes().isEmpty())
|
||||
return;
|
||||
|
||||
int old_row = ui->dataTable->currentIndex().row();
|
||||
while(ui->dataTable->selectionModel()->hasSelection())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user