diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index b123d498fc..78f70f21d1 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -226,7 +226,7 @@ UM.MainWindow UM.MachineManager.setActiveProfile(model.name); if (!model.active) { //Selecting a profile was canceled; undo menu selection - checked = false; + profileMenuInstantiator.model.setProperty(index, "active", false); var activeProfileName = UM.MachineManager.activeProfile; var activeProfileIndex = profileMenuInstantiator.model.find("name", activeProfileName); profileMenuInstantiator.model.setProperty(activeProfileIndex, "active", true); diff --git a/resources/qml/ProfileSetup.qml b/resources/qml/ProfileSetup.qml index d2be4ee69b..cf67a88108 100644 --- a/resources/qml/ProfileSetup.qml +++ b/resources/qml/ProfileSetup.qml @@ -62,7 +62,7 @@ Item{ UM.MachineManager.setActiveProfile(model.name); if (!model.active) { //Selecting a profile was canceled; undo menu selection - checked = false; + profileSelectionInstantiator.model.setProperty(index, "active", false); var activeProfileName = UM.MachineManager.activeProfile; var activeProfileIndex = profileSelectionInstantiator.model.find("name", activeProfileName); profileSelectionInstantiator.model.setProperty(activeProfileIndex, "active", true); diff --git a/resources/qml/SidebarHeader.qml b/resources/qml/SidebarHeader.qml index 68095e9401..b1d54112bb 100644 --- a/resources/qml/SidebarHeader.qml +++ b/resources/qml/SidebarHeader.qml @@ -142,7 +142,7 @@ Item UM.MachineManager.setActiveMachineVariant(variantsModel.getItem(index).name); if (typeof(model) !== "undefined" && !model.active) { //Selecting a variant was canceled; undo menu selection - checked = false; + variantSelectionInstantiator.model.setProperty(index, "active", false); var activeMachineVariantName = UM.MachineManager.activeMachineVariant; var activeMachineVariantIndex = variantSelectionInstantiator.model.find("name", activeMachineVariantName); variantSelectionInstantiator.model.setProperty(activeMachineVariantIndex, "active", true); @@ -206,7 +206,7 @@ Item UM.MachineManager.setActiveMaterial(machineMaterialsModel.getItem(index).name); if (typeof(model) !== "undefined" && !model.active) { //Selecting a material was canceled; undo menu selection - checked = false; + materialSelectionInstantiator.model.setProperty(index, "active", false); var activeMaterialName = UM.MachineManager.activeMaterial; var activeMaterialIndex = materialSelectionInstantiator.model.find("name", activeMaterialName); materialSelectionInstantiator.model.setProperty(activeMaterialIndex, "active", true);