logic: Allow multiple node type filters in the search field

This commit is contained in:
Eberhard Graether
2017-12-11 00:47:25 +01:00
parent 604c3c85eb
commit fc199187f2
+1 -1
View File
@@ -751,7 +751,7 @@ std::vector<SearchMatch> PersistentStorage::getAutocompletionCommandMatches(
}
if (acceptedNodeTypes == NodeTypeSet::all() ||
(match.getCommandType() == SearchMatch::COMMAND_NODE_FILTER && (acceptedNodeTypes.contains(match.nodeType))))
(match.getCommandType() == SearchMatch::COMMAND_NODE_FILTER && !(acceptedNodeTypes.contains(match.nodeType))))
{
matches.push_back(match);
}