diff options
Diffstat (limited to 'resources/qml/Menus/PrinterTypeMenu.qml')
-rw-r--r-- | resources/qml/Menus/PrinterTypeMenu.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/Menus/PrinterTypeMenu.qml b/resources/qml/Menus/PrinterTypeMenu.qml index 17986ac1b8..8691bf7ecc 100644 --- a/resources/qml/Menus/PrinterTypeMenu.qml +++ b/resources/qml/Menus/PrinterTypeMenu.qml @@ -28,7 +28,7 @@ Cura.Menu Cura.MachineManager.switchPrinterType(modelData.machine_type) } } - onObjectAdded: menu.insertItem(index, object) - onObjectRemoved: menu.removeItem(object) + onObjectAdded: function(index, object) { return menu.insertItem(index, object); } + onObjectRemoved: function(index, object) { return menu.removeItem(object); } } } |