mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-28 17:24:17 -04:00
Activate corresponding tab when opening new database.
This commit is contained in:
parent
f90831b809
commit
cef8032a74
1 changed files with 2 additions and 0 deletions
|
@ -241,6 +241,8 @@ void DatabaseManager::insertDatabase(Database* db, const DatabaseManagerStruct&
|
||||||
|
|
||||||
m_tabWidget->addTab(dbStruct.dbWidget, "");
|
m_tabWidget->addTab(dbStruct.dbWidget, "");
|
||||||
updateTabName(db);
|
updateTabName(db);
|
||||||
|
int index = databaseIndex(db);
|
||||||
|
m_tabWidget->setCurrentIndex(index);
|
||||||
|
|
||||||
connect(db->metadata(), SIGNAL(nameTextChanged(Database*)), SLOT(updateTabName(Database*)));
|
connect(db->metadata(), SIGNAL(nameTextChanged(Database*)), SLOT(updateTabName(Database*)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue