From 6d1f766ef348ce795ed4f0010c2d3b44674c49aa Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Tue, 18 Oct 2016 13:18:56 +0200 Subject: [PATCH] Fixed for the inheritance icon and custom profiles. CURA-2674 Inheritance icon not shown for saved profile. --- cura/Settings/SettingInheritanceManager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cura/Settings/SettingInheritanceManager.py b/cura/Settings/SettingInheritanceManager.py index 93a7b1370d..84002128c7 100644 --- a/cura/Settings/SettingInheritanceManager.py +++ b/cura/Settings/SettingInheritanceManager.py @@ -170,11 +170,16 @@ class SettingInheritanceManager(QObject): def _onGlobalContainerChanged(self): if self._global_container_stack: self._global_container_stack.propertyChanged.disconnect(self._onPropertyChanged) + self._global_container_stack.containersChanged.disconnect(self._onContainersChanged) self._global_container_stack = Application.getInstance().getGlobalContainerStack() if self._global_container_stack: + self._global_container_stack.containersChanged.connect(self._onContainersChanged) self._global_container_stack.propertyChanged.connect(self._onPropertyChanged) self._onActiveExtruderChanged() + def _onContainersChanged(self, container): + self._onActiveExtruderChanged() + @staticmethod def createSettingInheritanceManager(engine=None, script_engine=None): return SettingInheritanceManager() \ No newline at end of file