Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Geyer <blueice@fobos.de>2011-12-25 03:56:04 +0400
committerFlorian Geyer <blueice@fobos.de>2011-12-26 21:58:14 +0400
commitcef8032a74dad3f2740b2c92b22155f482dafb26 (patch)
treee805cb3c46b2168bb61bc10f9f49d441369b5623
parentf90831b8095a51aca87be9dfea5c75520f3baa58 (diff)
Activate corresponding tab when opening new database.
-rw-r--r--src/gui/DatabaseManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/DatabaseManager.cpp b/src/gui/DatabaseManager.cpp
index e187d4f26..106eeadb0 100644
--- a/src/gui/DatabaseManager.cpp
+++ b/src/gui/DatabaseManager.cpp
@@ -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*)));
}