mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
don't insert an empty item if there is no table
This commit is contained in:
@@ -1045,9 +1045,7 @@ void MainWindow::resetBrowser()
|
||||
QString sCurrentTable = comboBrowseTable->currentText();
|
||||
comboBrowseTable->clear();
|
||||
QStringList tab = db.getTableNames();
|
||||
if (tab.isEmpty()){
|
||||
comboBrowseTable->addItem("");
|
||||
} else {
|
||||
if(!tab.isEmpty()) {
|
||||
comboBrowseTable->addItems(tab);
|
||||
}
|
||||
setRecordsetLabel();
|
||||
|
||||
Reference in New Issue
Block a user