From 260c84ccf0ba91223ca844ea705808f4b3fd1fd7 Mon Sep 17 00:00:00 2001 From: Bernhard <34011017+Colfenor@users.noreply.github.com> Date: Sat, 17 Oct 2020 00:42:59 +0200 Subject: [PATCH] Fix reSelect entry & group on loadDb --- src/gui/DatabaseWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 3846db76..28d3aedd 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -1084,6 +1084,9 @@ void DatabaseWidget::loadDatabase(bool accepted) replaceDatabase(openWidget->database()); switchToMainView(); processAutoOpen(); + restoreGroupEntryFocus(m_groupBeforeLock, m_entryBeforeLock); + m_groupBeforeLock = QUuid(); + m_entryBeforeLock = QUuid(); m_saveAttempts = 0; emit databaseUnlocked(); if (config()->get(Config::MinimizeAfterUnlock).toBool()) {