Fix currentMode() while DB is not yet open.

This commit is contained in:
Francois Ferrand 2013-05-01 12:08:20 +02:00
parent a85ac07576
commit d8857bf42d

View File

@ -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 {