GUI: ensure safeChecks.classes option is saved
This commit is contained in:
parent
332279326f
commit
0faea7ade3
|
@ -264,6 +264,7 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile)
|
||||||
mUI.mBtnClangParser->setChecked(true);
|
mUI.mBtnClangParser->setChecked(true);
|
||||||
else
|
else
|
||||||
mUI.mBtnCppcheckParser->setChecked(true);
|
mUI.mBtnCppcheckParser->setChecked(true);
|
||||||
|
mUI.mBtnSafeClasses->setChecked(projectFile->safeChecks.classes);
|
||||||
mUI.mBugHunting->setChecked(projectFile->bugHunting);
|
mUI.mBugHunting->setChecked(projectFile->bugHunting);
|
||||||
setExcludedPaths(projectFile->getExcludedPaths());
|
setExcludedPaths(projectFile->getExcludedPaths());
|
||||||
setLibraries(projectFile->getLibraries());
|
setLibraries(projectFile->getLibraries());
|
||||||
|
@ -367,6 +368,7 @@ void ProjectFileDialog::saveToProjectFile(ProjectFile *projectFile) const
|
||||||
projectFile->setExcludedPaths(getExcludedPaths());
|
projectFile->setExcludedPaths(getExcludedPaths());
|
||||||
projectFile->setLibraries(getLibraries());
|
projectFile->setLibraries(getLibraries());
|
||||||
projectFile->clangParser = mUI.mBtnClangParser->isChecked();
|
projectFile->clangParser = mUI.mBtnClangParser->isChecked();
|
||||||
|
projectFile->safeChecks.classes = mUI.mBtnSafeClasses->isChecked();
|
||||||
projectFile->bugHunting = mUI.mBugHunting->isChecked();
|
projectFile->bugHunting = mUI.mBugHunting->isChecked();
|
||||||
if (mUI.mComboBoxPlatform->currentText().endsWith(".xml"))
|
if (mUI.mComboBoxPlatform->currentText().endsWith(".xml"))
|
||||||
projectFile->setPlatform(mUI.mComboBoxPlatform->currentText());
|
projectFile->setPlatform(mUI.mComboBoxPlatform->currentText());
|
||||||
|
|
Loading…
Reference in New Issue