From 0faea7ade3ad9e010e9262d3aa1c9d4d7e64612b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 14 Feb 2020 17:42:47 +0100 Subject: [PATCH] GUI: ensure safeChecks.classes option is saved --- gui/projectfiledialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/projectfiledialog.cpp b/gui/projectfiledialog.cpp index d8800fce1..08767a06f 100644 --- a/gui/projectfiledialog.cpp +++ b/gui/projectfiledialog.cpp @@ -264,6 +264,7 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile) mUI.mBtnClangParser->setChecked(true); else mUI.mBtnCppcheckParser->setChecked(true); + mUI.mBtnSafeClasses->setChecked(projectFile->safeChecks.classes); mUI.mBugHunting->setChecked(projectFile->bugHunting); setExcludedPaths(projectFile->getExcludedPaths()); setLibraries(projectFile->getLibraries()); @@ -367,6 +368,7 @@ void ProjectFileDialog::saveToProjectFile(ProjectFile *projectFile) const projectFile->setExcludedPaths(getExcludedPaths()); projectFile->setLibraries(getLibraries()); projectFile->clangParser = mUI.mBtnClangParser->isChecked(); + projectFile->safeChecks.classes = mUI.mBtnSafeClasses->isChecked(); projectFile->bugHunting = mUI.mBugHunting->isChecked(); if (mUI.mComboBoxPlatform->currentText().endsWith(".xml")) projectFile->setPlatform(mUI.mComboBoxPlatform->currentText());