mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04: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