Use container tree to get current quality groups

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-28 09:02:26 +02:00
parent b2cee850c9
commit 4fd886f2e8
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -1135,9 +1135,8 @@ class MachineManager(QObject):
# A custom quality can be created based on "not supported".
# In that case, do not set quality containers to empty.
quality_group = None
if quality_type != "not_supported":
quality_group_dict = QualityManager.getInstance().getQualityGroups(self._global_container_stack)
quality_group = quality_group_dict.get(quality_type)
if quality_type != "not_supported": # Find the quality group that the quality changes was based on.
quality_group = ContainerTree.getInstance().getCurrentQualityGroups().get(quality_type)
if quality_group is None:
self._fixQualityChangesGroupToNotSupported(quality_changes_group)