mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-28 04:46:54 -08:00
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:
1 parent
bc7d9806e5
commit
edff1066de
1 file changed
+1
@@ -2080,6 +2080,7 @@ bool DatabaseWidget::lock()
|
||||
QApplication::processEvents();
|
||||
disconnect(connection);
|
||||
if (reloadTriggered) {
|
||||
m_attemptingLock = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user