mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Fix the case that a quality_type is not available
CURA-5218
This commit is contained in:
parent
e50be5cbe7
commit
8d3c3c0e80
1 changed files with 3 additions and 4 deletions
|
@ -1020,11 +1020,10 @@ class MachineManager(QObject):
|
|||
quality_type = quality_changes_group.quality_type
|
||||
# A custom quality can be created based on "not supported".
|
||||
# In that case, do not set quality containers to empty.
|
||||
if quality_type == "not_supported":
|
||||
quality_group = None
|
||||
else:
|
||||
quality_group = None
|
||||
if quality_type != "not_supported":
|
||||
quality_group_dict = self._quality_manager.getQualityGroups(self._global_container_stack)
|
||||
quality_group = quality_group_dict[quality_type]
|
||||
quality_group = quality_group_dict.get(quality_type)
|
||||
|
||||
quality_changes_container = self._empty_quality_changes_container
|
||||
if quality_changes_group.node_for_global:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue