mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:29:05 +08:00
Fix crashing if the quality_type_to_apply is None
Fixes sentry issue CURA-24D
This commit is contained in:
parent
df5c52d1c6
commit
00ade8be3a
@ -1157,7 +1157,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||||||
return
|
return
|
||||||
machine_manager.setQualityChangesGroup(quality_changes_group, no_dialog = True)
|
machine_manager.setQualityChangesGroup(quality_changes_group, no_dialog = True)
|
||||||
else:
|
else:
|
||||||
self._quality_type_to_apply = self._quality_type_to_apply.lower()
|
self._quality_type_to_apply = self._quality_type_to_apply.lower() if self._quality_type_to_apply else None
|
||||||
quality_group_dict = container_tree.getCurrentQualityGroups()
|
quality_group_dict = container_tree.getCurrentQualityGroups()
|
||||||
if self._quality_type_to_apply in quality_group_dict:
|
if self._quality_type_to_apply in quality_group_dict:
|
||||||
quality_group = quality_group_dict[self._quality_type_to_apply]
|
quality_group = quality_group_dict[self._quality_type_to_apply]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user