Skip to content

Commit e4a8480

Browse files
authored
Fix #14488 (GUI: The Misra C checkbox in "Edit Project" dialog is unchecked) (danmar#8206)
1 parent fd66b27 commit e4a8480

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
# Project file dialog
3+
4+
Some manual testing in the project file dialog interface
5+
6+
7+
## Test: Misra C checkbox
8+
9+
Matrix: Use both open source and premium
10+
11+
1. Load project file in trac ticket 14488
12+
1. Goto "Edit project"
13+
1. Goto "Addons" tab
14+
15+
EXPECTED: The misra c checkbox should be checked
16+
17+
TODO: can this test be automated
18+

gui/projectfiledialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile)
414414
mUI->mMisraC->setText("Misra C");
415415
else {
416416
mUI->mMisraC->setText("Misra C 2012 " + tr("Note: Open source Cppcheck does not fully implement Misra C 2012"));
417-
updateAddonCheckBox(mUI->mMisraC, projectFile, dataDir, ADDON_MISRA);
418417
}
418+
updateAddonCheckBox(mUI->mMisraC, projectFile, dataDir, ADDON_MISRA);
419419
mUI->mMisraVersion->setEnabled(mUI->mMisraC->isChecked());
420420
connect(mUI->mMisraC, &QCheckBox::toggled, mUI->mMisraVersion, &QComboBox::setEnabled);
421421

0 commit comments

Comments
 (0)