Fix crash after closing unsaved database (#690)

(introduced by @6f17c3d1)
This commit is contained in:
Iulian Onofrei
2016-08-01 17:29:48 +03:00
committed by Justin Clift
parent 8fcaae39a3
commit 163ce09943

View File

@@ -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()