mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 18:40:13 -06:00
Crash when browsing a table, deleting it and back to the data browser
Following these steps a crash was observed: 1. Browse a Table T in "Browse Data" tab 2. Change to "Database Structure" tab and delete table T 3. Return to "Browse Data" tab The application crashed because the combo still had the deleted table value. It was too soon for the updateInsertDeleteRecordButton() call. Moving it to the end of the method solves the issue.
This commit is contained in:
@@ -525,8 +525,6 @@ void MainWindow::populateTable()
|
||||
updateInsertDeleteRecordButton();
|
||||
});
|
||||
}
|
||||
updateInsertDeleteRecordButton();
|
||||
|
||||
// Search stored table settings for this table
|
||||
bool storedDataFound = browseTableSettings.contains(tablename);
|
||||
|
||||
@@ -637,6 +635,8 @@ void MainWindow::populateTable()
|
||||
ui->actionShowRowidColumn->setVisible(false);
|
||||
}
|
||||
|
||||
updateInsertDeleteRecordButton();
|
||||
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user