From 5cf1aec6dfa26b2ba76d31494c30ad8d56d47c87 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 27 Dec 2014 14:14:41 +0100 Subject: [PATCH] fix for findAll() --- src/lib/ebus/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ebus/message.cpp b/src/lib/ebus/message.cpp index aa643594..512ad234 100644 --- a/src/lib/ebus/message.cpp +++ b/src/lib/ebus/message.cpp @@ -429,7 +429,7 @@ deque MessageMap::findAll(const string& clazz, const string& name, con bool checkName = name.length() > 0; bool checkPb = pb >= 0; for (map::iterator it = m_messagesByName.begin(); it != m_messagesByName.end(); it++) { - if (it->first[0] != '-') // avoid duplicates: instances stored multiple times have a key starting with "-" + if (it->first[0] == '-') // avoid duplicates: instances stored multiple times have a key starting with "-" continue; Message* message = it->second; if (checkClass == true && message->getClass() != clazz)