GUI: allow that misra addon is executed without rule texts file

This commit is contained in:
Daniel Marjamäki 2022-04-14 09:09:58 +02:00
parent 09597bc7e8
commit 5825ab75db
1 changed files with 0 additions and 3 deletions

View File

@ -347,9 +347,6 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile)
if (!mUI->mAddonMisra->isEnabled()) {
mUI->mEditMisraFile->setEnabled(false);
mUI->mBtnBrowseMisraFile->setEnabled(false);
} else if (misraFile.isEmpty()) {
mUI->mAddonMisra->setEnabled(false);
mUI->mAddonMisra->setText(mUI->mAddonMisra->text() + ' ' + tr("(no rule texts file)"));
}
mUI->mToolClangAnalyzer->setChecked(projectFile->getClangAnalyzer());