mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-04 04:23:58 -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()
|
application = cura.CuraApplication.CuraApplication.getInstance()
|
||||||
new_name = application.getContainerRegistry().uniqueName(new_name)
|
new_name = application.getContainerRegistry().uniqueName(new_name)
|
||||||
for node in quality_changes_group.getAllNodes():
|
quality_changes_group.metadata_for_global["name"] = new_name
|
||||||
container = node.container
|
for metadata in quality_changes_group.metadata_per_extruder.values():
|
||||||
if container:
|
metadata["name"] = new_name
|
||||||
container.setName(new_name)
|
|
||||||
|
|
||||||
quality_changes_group.name = new_name
|
quality_changes_group.name = new_name
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue