mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-05 12:40:56 -05:00
Fix currentMode() while DB is not yet open.
This commit is contained in:
parent
a85ac07576
commit
d8857bf42d
@ -171,7 +171,8 @@ DatabaseWidget::Mode DatabaseWidget::currentMode()
|
||||
else if (currentWidget() == m_mainWidget) {
|
||||
return DatabaseWidget::ViewMode;
|
||||
}
|
||||
else if (currentWidget() == m_unlockDatabaseWidget) {
|
||||
else if (currentWidget() == m_unlockDatabaseWidget ||
|
||||
currentWidget() == m_databaseOpenWidget) {
|
||||
return DatabaseWidget::LockedMode;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user