mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 22:56:01 +08:00
Retain quality profile when switching from no quality-changes profile
The old quality-changes profile was 'empty_quality_changes', not None. Contributes to issue CURA-2006.
This commit is contained in:
parent
f9e0e457ea
commit
36a33bb135
@ -493,6 +493,8 @@ class MachineManager(QObject):
|
|||||||
if not old_material:
|
if not old_material:
|
||||||
Logger.log("w", "While trying to set the active material, no material was found to replace it.")
|
Logger.log("w", "While trying to set the active material, no material was found to replace it.")
|
||||||
return
|
return
|
||||||
|
if old_quality_changes.getId() == "empty_quality_changes": #Don't want the empty one.
|
||||||
|
old_quality_changes = None
|
||||||
|
|
||||||
old_material.nameChanged.disconnect(self._onMaterialNameChanged)
|
old_material.nameChanged.disconnect(self._onMaterialNameChanged)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user