mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07: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;
|
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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue