summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@qt.io>2018-09-07 14:38:20 +0300
committerTomi Korpipää <tomi.korpipaa@qt.io>2018-09-07 11:51:13 +0000
commitec8015d80a19f804696d2719800b63f2bca2a178 (patch)
tree7f6c4f1919d43a10bf329d62e058ed5ad250ec66 /src/Authoring/Studio/Palettes
parentc98602a58d1e44730b725808f797335e4ab7a68a (diff)
Fix crash when deleting a layer
This enabled doesn't seem to be needed, and is causing a binding loop when deleting a layer. Task-number: QT3DS-2288 Change-Id: If578949ad7854207c785e05b3a2d6dd722b4839e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes')
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
index f0520a84..234a35e4 100644
--- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
+++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
@@ -840,15 +840,15 @@ Rectangle {
property var value: parent.modelData.value
model: values
- // Disable for non-layer
- enabled: _inspectorModel.isLayer(instance)
showArrow: enabled
implicitWidth: _valueWidth
implicitHeight: _controlBaseHeight
Component.onCompleted: {
- currentIndex = find(value)
+ // Disable for non-layer
+ enabled = _inspectorModel.isLayer(instance);
+ currentIndex = find(value);
}
onCurrentIndexChanged: {