GUI: Remember standard toolbar visibility (add it to settings).

This commit is contained in:
Kimmo Varis 2009-07-02 00:05:09 +03:00
parent 23b816f43b
commit c79d50a710
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}