Things filter by param
This commit is contained in:
parent
45081ad64e
commit
964edeee5d
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user