From be4db899a644937c52123bb99ce9916051c0977c Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 10 Aug 2016 12:02:11 +0200 Subject: [PATCH] Change the active quality if we remove the active quality Contributes to CURA-2006 --- resources/qml/Preferences/ProfilesPage.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/qml/Preferences/ProfilesPage.qml b/resources/qml/Preferences/ProfilesPage.qml index ea129a62b0..e9391b90f2 100644 --- a/resources/qml/Preferences/ProfilesPage.qml +++ b/resources/qml/Preferences/ProfilesPage.qml @@ -227,7 +227,15 @@ UM.ManagementPage { id: confirmDialog object: base.currentItem != null ? base.currentItem.name : "" - onYes: Cura.ContainerManager.removeQualityChanges(base.currentItem.name) + onYes: + { + var name = base.currentItem.name; + Cura.ContainerManager.removeQualityChanges(name) + if(Cura.MachineManager.activeQualityName == name) + { + Cura.MachineManager.setActiveQuality(base.model.getItem(0).name) + } + } } UM.RenameDialog {