mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Fix changing name of profiles in quality changes group
Because quality changes don't have nodes any more. Contributes to issue CURA-6600.
This commit is contained in:
parent
7216a1dbd7
commit
f8472d6414
1 changed files with 3 additions and 4 deletions
|
@ -86,10 +86,9 @@ class QualityManagementModel(ListModel):
|
|||
|
||||
application = cura.CuraApplication.CuraApplication.getInstance()
|
||||
new_name = application.getContainerRegistry().uniqueName(new_name)
|
||||
for node in quality_changes_group.getAllNodes():
|
||||
container = node.container
|
||||
if container:
|
||||
container.setName(new_name)
|
||||
quality_changes_group.metadata_for_global["name"] = new_name
|
||||
for metadata in quality_changes_group.metadata_per_extruder.values():
|
||||
metadata["name"] = new_name
|
||||
|
||||
quality_changes_group.name = new_name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue