mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:48:59 +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
|
||||
machine_manager.setQualityChangesGroup(quality_changes_group, no_dialog = True)
|
||||
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()
|
||||
if self._quality_type_to_apply in quality_group_dict:
|
||||
quality_group = quality_group_dict[self._quality_type_to_apply]
|
||||
|
Loading…
x
Reference in New Issue
Block a user