Change order of initialisation, so we don't overwrite list with empty data

CURA-2361
This commit is contained in:
Jaime van Kessel 2016-09-16 11:28:12 +02:00
parent e3d78c17ea
commit b43a5a7e31

View File

@ -10,12 +10,12 @@ class SettingInheritanceManager(QObject):
Application.getInstance().globalContainerStackChanged.connect(self._onGlobalContainerChanged)
self._global_container_stack = None
self._onGlobalContainerChanged()
self._settings_with_inheritance_warning = []
self._active_container_stack = None
cura.Settings.ExtruderManager.getInstance().activeExtruderChanged.connect(self._onActiveExtruderChanged)
self._onActiveExtruderChanged()
self._settings_with_inheritance_warning = []
settingsWithIntheritanceChanged = pyqtSignal()
@ -37,6 +37,7 @@ class SettingInheritanceManager(QObject):
self._update() # Ensure that the settings_with_inheritance_warning list is populated.
self._active_container_stack.propertyChanged.connect(self._onPropertyChanged)
def _onPropertyChanged(self, key, property_name):
if property_name == "value" and self._global_container_stack: