From 8cbe410e345118f3aeec268aa1aa34d5b25c72f3 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Thu, 22 Sep 2016 11:06:49 +0200 Subject: [PATCH] Fix for creating profiles via the Create button. Contributes to CURA-2414 Quality changes profiles are created incorrectly --- cura/Settings/ContainerManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cura/Settings/ContainerManager.py b/cura/Settings/ContainerManager.py index 0ef2660549..2b4f8553ba 100644 --- a/cura/Settings/ContainerManager.py +++ b/cura/Settings/ContainerManager.py @@ -469,7 +469,10 @@ class ContainerManager(QObject): UM.Logger.log("w", "No quality or quality changes container found in stack %s, ignoring it", stack.getId()) continue - new_changes = self._createQualityChanges(quality_container, unique_name, stack.getId(), UM.Application.getInstance().getGlobalContainerStack()) + extruder_id = None if stack is global_stack else stack.getBottom().getId() + new_changes = self._createQualityChanges(quality_container, unique_name, + UM.Application.getInstance().getGlobalContainerStack().getBottom(), + extruder_id) self._performMerge(new_changes, user_container) self._container_registry.addContainer(new_changes)