Commit 4ba4f7e2 authored by Laurent Montel's avatar Laurent Montel 😁

simplify check

parent 03e68d4f
......@@ -138,7 +138,7 @@ QString KcmTreeItem::whatsThis() const
bool KcmTreeItem::childrenRegExp(const QRegExp& pattern)
{
foreach(KcmTreeItem *item, m_children) {
if((item->keywords().filter(pattern).count() > 0) == true) {
if(item->keywords().filter(pattern).count() > 0) {
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