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:
Ghostkeeper 2016-08-23 17:26:36 +02:00
parent f9e0e457ea
commit 36a33bb135
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -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)