SelectableFilesModel: Fix filtering

Change-Id: If5633109c54c863eeb89cb740deb72c0a861af76
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-11-24 15:15:15 +01:00
parent 3a2d5954f9
commit 13c5ea4d29

View File

@@ -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);
}