From c79d50a7103ac08f31c392d9c7ebac6affff68b0 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Thu, 2 Jul 2009 00:05:09 +0300 Subject: [PATCH] GUI: Remember standard toolbar visibility (add it to settings). --- gui/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index b5e0fd0d6..987437759 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -203,6 +203,9 @@ void MainWindow::LoadSettings() mResults.ShowResults(SHOW_ERRORS, mActionShowErrors.isChecked()); mResults.ShowResults(SHOW_SECURITY, mActionShowSecurity.isChecked()); mResults.ShowResults(SHOW_STYLE, mActionShowStyle.isChecked()); + + mStandardToolbar->setVisible(mSettings.value("Toolbars/ShowStandard", true).toBool()); + mApplications.LoadSettings(mSettings); } @@ -216,6 +219,9 @@ void MainWindow::SaveSettings() mSettings.setValue(tr("Show security"), mActionShowSecurity.isChecked()); mSettings.setValue(tr("Show style"), mActionShowStyle.isChecked()); mSettings.setValue(tr("Show errors"), mActionShowErrors.isChecked()); + + mSettings.setValue("Toolbars/ShowStandard", mActionViewStandardToolbar.isChecked()); + mApplications.SaveSettings(mSettings); }