mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06: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
1 changed files with 2 additions and 0 deletions
|
@ -493,6 +493,8 @@ class MachineManager(QObject):
|
|||
if not old_material:
|
||||
Logger.log("w", "While trying to set the active material, no material was found to replace it.")
|
||||
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue