Commit 13c5ea4d authored by Tobias Hunger's avatar Tobias Hunger
Browse files

SelectableFilesModel: Fix filtering



Change-Id: If5633109c54c863eeb89cb740deb72c0a861af76
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 3a2d5954
......@@ -123,9 +123,9 @@ bool SelectableFilesModel::filter(Tree *t)
return g.isMatch(t->name);
};
//If none of the "show file" filters match just return
if (!Utils::anyOf(m_showFilesFilter, matchesTreeName))
return true;
//If one of the "show file" filters matches just return false
if (Utils::anyOf(m_showFilesFilter, matchesTreeName))
return false;
return Utils::anyOf(m_hideFilesFilter, matchesTreeName);
}
......
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