mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04: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) {
|
else if (currentWidget() == m_mainWidget) {
|
||||||
return DatabaseWidget::ViewMode;
|
return DatabaseWidget::ViewMode;
|
||||||
}
|
}
|
||||||
else if (currentWidget() == m_unlockDatabaseWidget) {
|
else if (currentWidget() == m_unlockDatabaseWidget ||
|
||||||
|
currentWidget() == m_databaseOpenWidget) {
|
||||||
return DatabaseWidget::LockedMode;
|
return DatabaseWidget::LockedMode;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user