Disable recent databases menu when in settings widget.

This commit is contained in:
Florian Geyer 2012-07-23 23:50:17 +02:00
parent 9f21b54c4e
commit 53ce522c08

View File

@ -262,9 +262,11 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
m_ui->actionDatabaseClose->setEnabled(false); m_ui->actionDatabaseClose->setEnabled(false);
} }
m_ui->actionDatabaseNew->setEnabled(inDatabaseTabWidget || inWelcomeWidget); bool inDatabaseTabWidgetOrWelcomeWidget = inDatabaseTabWidget || inWelcomeWidget;
m_ui->actionDatabaseOpen->setEnabled(inDatabaseTabWidget || inWelcomeWidget); m_ui->actionDatabaseNew->setEnabled(inDatabaseTabWidgetOrWelcomeWidget);
m_ui->actionImportKeePass1->setEnabled(inDatabaseTabWidget || inWelcomeWidget); m_ui->actionDatabaseOpen->setEnabled(inDatabaseTabWidgetOrWelcomeWidget);
m_ui->menuRecentDatabases->setEnabled(inDatabaseTabWidgetOrWelcomeWidget);
m_ui->actionImportKeePass1->setEnabled(inDatabaseTabWidgetOrWelcomeWidget);
} }
void MainWindow::updateWindowTitle() void MainWindow::updateWindowTitle()