mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Improve code for deleting table rows
Actually handle the case that deleting rows might fail in the SqliteTableModel. That's where this sort of check belongs. This allows us to get rid of the full refresh of the table view after deleting a row in the Browse Data tab. Thanks to @innermous for pointing this out!
This commit is contained in:
@@ -595,7 +595,7 @@ void MainWindow::deleteRecord()
|
||||
break;
|
||||
}
|
||||
}
|
||||
populateTable(ui->comboBrowseTable->currentText());
|
||||
|
||||
if(old_row > m_browseTableModel->totalRowCount())
|
||||
old_row = m_browseTableModel->totalRowCount();
|
||||
selectTableLine(old_row);
|
||||
|
||||
Reference in New Issue
Block a user