Skip to content

Commit 333342c

Browse files
committed
[qml] Shape/Editor: Use graph commands for userName and userColor
1 parent 3d1e28a commit 333342c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meshroom/ui/qml/Shapes/Editor/Items/Utils/ItemHeader.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Pane {
217217
title: "Edit " + model.label + " color"
218218
selectedColor: model.userColor
219219
onAccepted: {
220-
model.userColor = selectedColor
220+
_reconstruction.setAttribute(model.childAttribute("userColor"), selectedColor.toString())
221221
close()
222222
}
223223
onRejected: close()
@@ -264,7 +264,7 @@ Pane {
264264
}
265265
enabled: isAttributeEnabled && model.root && (model.root.type === "ShapeList")
266266
onEditingFinished: {
267-
model.userName = text
267+
_reconstruction.setAttribute(model.childAttribute("userName"), text)
268268
focus = false
269269
}
270270
}

0 commit comments

Comments
 (0)