diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2023-03-24 14:05:07 +0200 |
---|---|---|
committer | Mahmoud Badri <mahmoud.badri@qt.io> | 2023-03-24 13:56:57 +0000 |
commit | 359ea5d55a9452d70c20754c2380b1bf1c704c04 (patch) | |
tree | db0691550aef3d18cabb6e29b5acc68d9f05e0ec | |
parent | e2e53896f990b8b955d20bce731640fc74007a38 (diff) | |
download | qt-creator-359ea5d55a9452d70c20754c2380b1bf1c704c04.tar.gz |
QmlDesigner: Disable edit material button when no material entered
Otherwise clicking the button leads to a crash.
Change-Id: I668143a9cf1f394e30a58f0f6f6078b479d284b7
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml index 91fd1a740e..04dfea7e31 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml @@ -95,6 +95,7 @@ Item { tooltip: root.extraButtonToolTip onClicked: root.extraButtonClicked(index) visible: root.extraButtonIcon !== "" + enabled: root.model[index] } IconIndicator { |