From df36c7a18b77a02e74db85d0ea60abe3e07fc504 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Fri, 19 May 2017 15:23:28 +0200 Subject: [PATCH] Check global_stack before updating in SettingInheritanceManager CURA-3756 --- cura/Settings/SettingInheritanceManager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/Settings/SettingInheritanceManager.py b/cura/Settings/SettingInheritanceManager.py index ff0d1d81c0..7e9bc2aa0e 100644 --- a/cura/Settings/SettingInheritanceManager.py +++ b/cura/Settings/SettingInheritanceManager.py @@ -198,6 +198,10 @@ class SettingInheritanceManager(QObject): def _update(self): self._settings_with_inheritance_warning = [] # Reset previous data. + # Make sure that the GlobalStack is not None. sometimes the globalContainerChanged signal gets here late. + if self._global_container_stack is None: + return + # Check all setting keys that we know of and see if they are overridden. for setting_key in self._global_container_stack.getAllKeys(): override = self._settingIsOverwritingInheritance(setting_key)