From 2ff7999baf6902c004a4ee76fa1d543dcd6fedea Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 5 Oct 2011 19:50:10 +0300 Subject: [PATCH] GUI: Fix enabling/disabling visibilities of errors When GUI was started not all the categories visibility statuses were not preserved. I.e. Ticket: #3087 (GUI does not show all reported files until a filter button state is changed) --- gui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 16fa0dfcb..e554d0deb 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -219,7 +219,11 @@ void MainWindow::LoadSettings() mUI.mActionShowInformation->setChecked(mSettings->value(SETTINGS_SHOW_INFORMATION, true).toBool()); mUI.mResults->ShowResults(SHOW_ERRORS, mUI.mActionShowErrors->isChecked()); + mUI.mResults->ShowResults(SHOW_WARNINGS, mUI.mActionShowWarnings->isChecked()); mUI.mResults->ShowResults(SHOW_STYLE, mUI.mActionShowStyle->isChecked()); + mUI.mResults->ShowResults(SHOW_PORTABILITY, mUI.mActionShowPortability->isChecked()); + mUI.mResults->ShowResults(SHOW_PERFORMANCE, mUI.mActionShowPerformance->isChecked()); + mUI.mResults->ShowResults(SHOW_INFORMATION, mUI.mActionShowInformation->isChecked()); // Main window settings const bool showMainToolbar = mSettings->value(SETTINGS_TOOLBARS_MAIN_SHOW, true).toBool();