From 6040a3fbffcaf2a12d2dd514b3d435d9389eb8bc Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 15 Sep 2021 13:05:22 +0200 Subject: [PATCH] Fix tagwatcher not filtering correctly in all circumstances --- libnymea-app/tagwatcher.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libnymea-app/tagwatcher.cpp b/libnymea-app/tagwatcher.cpp index dee3f455..27eca8a6 100644 --- a/libnymea-app/tagwatcher.cpp +++ b/libnymea-app/tagwatcher.cpp @@ -98,7 +98,10 @@ void TagWatcher::update() if (t->tagId() != m_tagId) { continue; } - if (t->thingId() != m_thingId && t->ruleId() != m_ruleId) { + if (!m_thingId.isNull() && t->thingId() != m_thingId) { + continue; + } + if (!m_ruleId.isNull() && t->ruleId() != m_ruleId) { continue; } tag = t;