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:
-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 495adfab6..36ecdf0e8 100644
--- a/src/gui/DatabaseManager.cpp
+++ b/src/gui/DatabaseManager.cpp
@@ -265,6 +265,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*)));
}