Fix reSelect entry & group on loadDb

This commit is contained in:
Bernhard 2020-10-17 00:42:59 +02:00 committed by Jonathan White
parent 5ea46d4c12
commit c9e7ffadad

View File

@ -1081,6 +1081,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()) {