From edff1066de83c6fa586b939d8065cfd01cc82e2d Mon Sep 17 00:00:00 2001 From: underclockeddev <71031886+underclockeddev@users.noreply.github.com> Date: Wed, 30 Sep 2026 12:24:49 -0400 Subject: [PATCH] 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 --- src/gui/DatabaseWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index ef6a96635..2f5c6c708 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -2080,6 +2080,7 @@ bool DatabaseWidget::lock() QApplication::processEvents(); disconnect(connection); if (reloadTriggered) { + m_attemptingLock = false; return false; } }