mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
CURA-4606 set empty quality when setting active machine when the current quality type is not in the available qualities
This commit is contained in:
parent
fae82ef242
commit
cbeaf3b287
1 changed files with 1 additions and 0 deletions
|
@ -286,6 +286,7 @@ class MachineManager(QObject):
|
|||
quality_groups = self._application._quality_manager.getQualityGroups(global_stack)
|
||||
if quality_type not in quality_groups:
|
||||
Logger.log("w", "Quality type [%s] not found in available qualities [%s]", quality_type, str(quality_groups.values()))
|
||||
self._setEmptyQuality()
|
||||
return
|
||||
new_quality_group = quality_groups[quality_type]
|
||||
self._setQualityGroup(new_quality_group, empty_quality_changes = True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue