Things filter by param

This commit is contained in:
Simon Stürz 2022-05-23 16:10:12 +02:00
parent 45081ad64e
commit 964edeee5d

View File

@ -738,7 +738,7 @@ Things Things::filterByParam(const ParamTypeId &paramTypeId, 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) {