Browse Source

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

CURA-2361
Jaime van Kessel 8 years ago
parent
commit
b43a5a7e31
1 changed files with 3 additions and 2 deletions
  1. 3 2
      cura/Settings/SettingInheritanceManager.py

+ 3 - 2
cura/Settings/SettingInheritanceManager.py

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