Merge PR #357: Fix state change signal
This commit is contained in:
commit
e5e670753e
@ -364,7 +364,7 @@ void Thing::setStateValue(const StateTypeId &stateTypeId, const QVariant &value)
|
|||||||
|
|
||||||
qCDebug(dcThing()).nospace() << m_name << ": State " << stateType.name() << " changed from " << oldValue << " to " << newValue;
|
qCDebug(dcThing()).nospace() << m_name << ": State " << stateType.name() << " changed from " << oldValue << " to " << newValue;
|
||||||
m_states[i].setValue(newValue);
|
m_states[i].setValue(newValue);
|
||||||
emit stateValueChanged(stateTypeId, value);
|
emit stateValueChanged(stateTypeId, newValue);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user