mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:35:53 +08: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
@ -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…
x
Reference in New Issue
Block a user