From 964edeee5db0b38577479f2560e2b7f3c425e3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 23 May 2022 16:10:12 +0200 Subject: [PATCH] Things filter by param --- libnymea/integrations/thing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnymea/integrations/thing.cpp b/libnymea/integrations/thing.cpp index 36450d9b..64a64722 100644 --- a/libnymea/integrations/thing.cpp +++ b/libnymea/integrations/thing.cpp @@ -738,7 +738,7 @@ Things Things::filterByParam(const ParamTypeId ¶mTypeId, const QVariant &val { Things ret; foreach (Thing* thing, *this) { - if (paramTypeId != paramTypeId) { + if (!thing->thingClass().paramTypes().findById(paramTypeId).isValid()) { continue; } if (!value.isNull() && thing->paramValue(paramTypeId) != value) {