forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -95,6 +95,7 @@ Item {
|
||||
tooltip: root.extraButtonToolTip
|
||||
onClicked: root.extraButtonClicked(index)
|
||||
visible: root.extraButtonIcon !== ""
|
||||
enabled: root.model[index]
|
||||
}
|
||||
|
||||
IconIndicator {
|
||||
|
Reference in New Issue
Block a user