diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 28a992d9..e988ed40 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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()) {