Commit 5d3b5bef authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

QCMakeCacheView: simplify boolean expression

parent ad42eb33
......@@ -95,10 +95,7 @@ protected:
// if there are no children
if (!m->hasChildren(idx)) {
bool adv = m->data(idx, QCMakeCacheModel::AdvancedRole).toBool();
if (!adv || (adv && this->ShowAdvanced)) {
return true;
}
return false;
return !adv || this->ShowAdvanced;
}
// check children
......
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