Fixed for the inheritance icon and custom profiles.

CURA-2674 Inheritance icon not shown for saved profile.
This commit is contained in:
Simon Edwards 2016-10-18 13:18:56 +02:00
parent cc549932c4
commit 6d1f766ef3

View file

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