forked from qt-creator/qt-creator
SelectableFilesModel: Fix filtering
Change-Id: If5633109c54c863eeb89cb740deb72c0a861af76 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user