Commit 38def9a3 authored by Mariusz Glebocki's avatar Mariusz Glebocki

Fix possible null pointer dereference

parent 931a12d2
......@@ -119,9 +119,9 @@ public:
bool hasChanged() const {
for(const QButtonGroup *group: qAsConst(_groups)) {
int value = buttonToEnumValue(group->checkedButton());
const auto enumItem = groupToConfigItemEnum(group);
const auto *enumItem = groupToConfigItemEnum(group);
if(!enumItem->isEqual(value)) {
if(enumItem != nullptr && !enumItem->isEqual(value)) {
return true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment