Change the active quality if we remove the active quality

Contributes to CURA-2006
This commit is contained in:
Arjen Hiemstra 2016-08-10 12:02:11 +02:00
parent 5edeaa1c93
commit be4db899a6

View file

@ -227,7 +227,15 @@ UM.ManagementPage
{ {
id: confirmDialog id: confirmDialog
object: base.currentItem != null ? base.currentItem.name : "" 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 UM.RenameDialog
{ {