mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Fix crash after closing unsaved database (#690)
(introduced by @6f17c3d1)
This commit is contained in:
committed by
Justin Clift
parent
8fcaae39a3
commit
163ce09943
@@ -487,7 +487,6 @@ void MainWindow::populateTable(QString tablename)
|
||||
|
||||
void MainWindow::resetBrowser(bool reloadTable)
|
||||
{
|
||||
const QString sCurrentTable = ui->comboBrowseTable->currentText();
|
||||
ui->comboBrowseTable->clear();
|
||||
const objectMap& tab = db.getBrowsableObjects();
|
||||
|
||||
@@ -510,7 +509,7 @@ void MainWindow::resetBrowser(bool reloadTable)
|
||||
|
||||
setRecordsetLabel();
|
||||
if(reloadTable)
|
||||
populateTable(sCurrentTable);
|
||||
populateTable(ui->comboBrowseTable->currentText());
|
||||
}
|
||||
|
||||
bool MainWindow::fileClose()
|
||||
|
||||
Reference in New Issue
Block a user