mirror of https://github.com/nymea/nymea.git
Merge PR #526: Fix Things filter by param method
commit
45c20c56cc
|
|
@ -739,7 +739,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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue