Clear m_attemptingLock when a lock's autosave triggers a reload

DatabaseWidget::lock() returned early when its autosave failed and a reload
began, without clearing m_attemptingLock. Every later lock() then returned at
the m_attemptingLock check, so the database could not be locked again until
KeePassXC was restarted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
underclockeddevandClaude Opus 5.5 authored and Janek Bevendorff committed 2026-10-21 10:43:26 +02:00
1 parent bc7d9806e5
commit edff1066de
1 file changed
+1
+1
View File
@@ -2080,6 +2080,7 @@ bool DatabaseWidget::lock()
QApplication::processEvents();
disconnect(connection);
if (reloadTriggered) {
m_attemptingLock = false;
return false;
}
}