mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Activate corresponding tab when opening new database.
This commit is contained in:
parent
f90831b809
commit
cef8032a74
@ -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*)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user