don't insert an empty item if there is no table

This commit is contained in:
Peinthor Rene
2012-02-21 14:59:03 +01:00
parent 917d035b82
commit a7424aa7f8

View File

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