From 1495ae798b1156a7ff3804c49d7f2aa9e4feed06 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 8a29d1822a..763140e618 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -2084,6 +2084,7 @@ bool DatabaseWidget::lock() QApplication::processEvents(); disconnect(connection); if (reloadTriggered) { + m_attemptingLock = false; return false; } }