forked from qt-creator/qt-creator
QmlDesigner: Fix adding bundle material from context menu
Was broken by 57448021b8
Change-Id: Id4822b75038dadac6c898191bce2b4f60de79232
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -29,13 +29,13 @@ StudioControls.Menu {
|
||||
StudioControls.MenuItem {
|
||||
text: qsTr("Apply to selected (replace)")
|
||||
enabled: root.targetAvailable && root.hasModelSelection
|
||||
onTriggered: root.applyToSelected(root.targetMaterial, false)
|
||||
onTriggered: materialsModel.applyToSelected(root.targetMaterial, false)
|
||||
}
|
||||
|
||||
StudioControls.MenuItem {
|
||||
text: qsTr("Apply to selected (add)")
|
||||
enabled: root.targetAvailable && root.hasModelSelection
|
||||
onTriggered: root.applyToSelected(root.targetMaterial, true)
|
||||
onTriggered: materialsModel.applyToSelected(root.targetMaterial, true)
|
||||
}
|
||||
|
||||
StudioControls.MenuSeparator {}
|
||||
|
Reference in New Issue
Block a user