From fc199187f280aaf0d06c8e794feb5e74b51a8fd7 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Mon, 11 Dec 2017 00:47:25 +0100 Subject: [PATCH] logic: Allow multiple node type filters in the search field --- src/lib/data/storage/PersistentStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/data/storage/PersistentStorage.cpp b/src/lib/data/storage/PersistentStorage.cpp index 2d8ceccf..6791e8ed 100644 --- a/src/lib/data/storage/PersistentStorage.cpp +++ b/src/lib/data/storage/PersistentStorage.cpp @@ -751,7 +751,7 @@ std::vector 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); }