mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Check global_stack before updating in SettingInheritanceManager
CURA-3756
This commit is contained in:
parent
a386e6d867
commit
862cbe0211
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,10 @@ class SettingInheritanceManager(QObject):
|
||||||
def _update(self):
|
def _update(self):
|
||||||
self._settings_with_inheritance_warning = [] # Reset previous data.
|
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.
|
# Check all setting keys that we know of and see if they are overridden.
|
||||||
for setting_key in self._global_container_stack.getAllKeys():
|
for setting_key in self._global_container_stack.getAllKeys():
|
||||||
override = self._settingIsOverwritingInheritance(setting_key)
|
override = self._settingIsOverwritingInheritance(setting_key)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue