GUI: Remove redundant code (#1102)
The checked state of the addon checkboxes is already set in the updateAddonCheckBox function directly above the removed code. I do not see any reason to set it again and only for three of the four checkboxes.
This commit is contained in:
parent
3c5ab13a6d
commit
857da29967
|
@ -165,9 +165,6 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile)
|
||||||
updateAddonCheckBox(mUI.mAddonCert, projectFile, dataDir, "cert");
|
updateAddonCheckBox(mUI.mAddonCert, projectFile, dataDir, "cert");
|
||||||
updateAddonCheckBox(mUI.mAddonMisra, projectFile, dataDir, "misra");
|
updateAddonCheckBox(mUI.mAddonMisra, projectFile, dataDir, "misra");
|
||||||
|
|
||||||
mUI.mAddonY2038->setChecked(projectFile->getAddons().contains("y2038"));
|
|
||||||
mUI.mAddonCert->setChecked(projectFile->getAddons().contains("cert"));
|
|
||||||
mUI.mAddonMisra->setChecked(projectFile->getAddons().contains("misra"));
|
|
||||||
mUI.mToolClangAnalyzer->setChecked(projectFile->getClangAnalyzer());
|
mUI.mToolClangAnalyzer->setChecked(projectFile->getClangAnalyzer());
|
||||||
mUI.mToolClangTidy->setChecked(projectFile->getClangTidy());
|
mUI.mToolClangTidy->setChecked(projectFile->getClangTidy());
|
||||||
if (CheckThread::clangTidyCmd().isEmpty()) {
|
if (CheckThread::clangTidyCmd().isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue