mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Fix removing container after rejecting a rename
Contributes to CURA-2006
This commit is contained in:
parent
783d395fbc
commit
2a81d25bf9
1 changed files with 2 additions and 2 deletions
|
@ -223,12 +223,12 @@ UM.ManagementPage
|
|||
id: renameDialog;
|
||||
object: base.currentItem != null ? base.currentItem.name : ""
|
||||
property bool removeWhenRejected: false
|
||||
onAccepted: Cura.ContainerManager.renameQualityChanges(base.currentItem.name, newName)
|
||||
onRejected: {
|
||||
if(removeWhenRejected) {
|
||||
Cura.MachineManager.removeQualityContainer(base.currentItem.id)
|
||||
Cura.ContainerManager.removeQualityChanges(base.currentItem.name)
|
||||
}
|
||||
}
|
||||
onAccepted: Cura.ContainerManager.renameQualityChanges(base.currentItem.name, newName)
|
||||
}
|
||||
MessageDialog
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue