Fix removing container after rejecting a rename

Contributes to CURA-2006
This commit is contained in:
Arjen Hiemstra 2016-08-10 11:05:56 +02:00
parent 783d395fbc
commit 2a81d25bf9

View File

@ -223,12 +223,12 @@ UM.ManagementPage
id: renameDialog; id: renameDialog;
object: base.currentItem != null ? base.currentItem.name : "" object: base.currentItem != null ? base.currentItem.name : ""
property bool removeWhenRejected: false property bool removeWhenRejected: false
onAccepted: Cura.ContainerManager.renameQualityChanges(base.currentItem.name, newName)
onRejected: { onRejected: {
if(removeWhenRejected) { if(removeWhenRejected) {
Cura.MachineManager.removeQualityContainer(base.currentItem.id) Cura.ContainerManager.removeQualityChanges(base.currentItem.name)
} }
} }
onAccepted: Cura.ContainerManager.renameQualityChanges(base.currentItem.name, newName)
} }
MessageDialog MessageDialog
{ {