diff options
author | Tomi Korpipää <tomi.korpipaa@qt.io> | 2018-09-07 14:38:20 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2018-09-07 11:51:13 +0000 |
commit | ec8015d80a19f804696d2719800b63f2bca2a178 (patch) | |
tree | 7f6c4f1919d43a10bf329d62e058ed5ad250ec66 /src/Authoring/Studio/Palettes | |
parent | c98602a58d1e44730b725808f797335e4ab7a68a (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.qml | 6 |
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: { |