From 13c5ea4d2906390a34b65061aa4b64e96ac290f1 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 24 Nov 2015 15:15:15 +0100 Subject: [PATCH] SelectableFilesModel: Fix filtering Change-Id: If5633109c54c863eeb89cb740deb72c0a861af76 Reviewed-by: Niels Weber --- src/plugins/projectexplorer/selectablefilesmodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/projectexplorer/selectablefilesmodel.cpp b/src/plugins/projectexplorer/selectablefilesmodel.cpp index 03419c749f2..793b94509b8 100644 --- a/src/plugins/projectexplorer/selectablefilesmodel.cpp +++ b/src/plugins/projectexplorer/selectablefilesmodel.cpp @@ -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); }