Activate corresponding tab when opening new database.

This commit is contained in:
Florian Geyer 2011-12-25 00:56:04 +01:00
parent f90831b809
commit cef8032a74

View File

@ -241,6 +241,8 @@ void DatabaseManager::insertDatabase(Database* db, const DatabaseManagerStruct&
m_tabWidget->addTab(dbStruct.dbWidget, "");
updateTabName(db);
int index = databaseIndex(db);
m_tabWidget->setCurrentIndex(index);
connect(db->metadata(), SIGNAL(nameTextChanged(Database*)), SLOT(updateTabName(Database*)));
}