forked from qt-creator/qt-creator
QmlDesigner: Fix clearing node lock/eyeball
Lock/eyeball status was not propagated to puppet when lock/eyeball was cleared, as clearing these aux properties instead removes them, which triggers change notification with invalid value. Fixed by allowing invalid value to be propagated for these properties. Fixes: QDS-8735 Change-Id: Ic5c4818afeef71612f9620b3a0af503793a37e90 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -640,14 +640,12 @@ void NodeInstanceView::auxiliaryDataChanged(const ModelNode &node,
|
||||
case AuxiliaryDataType::Document:
|
||||
if ((key == lockedProperty || key == invisibleProperty) && hasInstanceForModelNode(node)) {
|
||||
NodeInstance instance = instanceForModelNode(node);
|
||||
if (value.isValid()) {
|
||||
PropertyValueContainer container{instance.instanceId(),
|
||||
PropertyName{key.name},
|
||||
value,
|
||||
TypeName(),
|
||||
key.type};
|
||||
m_nodeInstanceServer->changeAuxiliaryValues({{container}});
|
||||
}
|
||||
};
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user