Call the right methods of CuraActions in Actions.qml

Contributes to CURA-3609
This commit is contained in:
Arjen Hiemstra 2017-04-20 17:27:28 +02:00
parent b56802a523
commit 03ccdec861

View File

@ -187,7 +187,7 @@ Item
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
iconName: "edit-delete";
shortcut: StandardKey.Delete;
onTriggered: CuraApplication.deleteSelection();
onTriggered: CuraActions.deleteSelection();
}
Action
@ -196,6 +196,7 @@ Item
text: catalog.i18ncp("@action:inmenu menubar:edit", "Center Selected Model", "Center Selected Models", UM.Selection.selectionCount);
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
iconName: "align-vertical-center";
onTriggered: CuraActions.centerSelection();
}
Action