Merge PR #526: Fix Things filter by param method
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user