Pick quality changes group from quality changes groups, not quality groups

Oops.

Probably went wrong when I copied over this code from some other place.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-09-12 15:19:06 +02:00
parent 2d0a122c2d
commit 92d2686fed
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -1573,7 +1573,7 @@ class MachineManager(QObject):
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
if not global_stack or global_stack.qualityChanges == empty_quality_changes_container:
return None
for group in ContainerTree.getInstance().getCurrentQualityGroups(): # Match on the container ID of the global stack to find the quality changes group belonging to the active configuration.
for group in ContainerTree.getInstance().getCurrentQualityChangesGroups(): # Match on the container ID of the global stack to find the quality changes group belonging to the active configuration.
if group.metadata_for_global and group.metadata_for_global["id"] == global_stack.qualityChanges.getId():
return group
return None