mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-13 06:11:50 +08:00
Check global_stack before updating in SettingInheritanceManager
CURA-3756
This commit is contained in:
parent
430508c185
commit
df36c7a18b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user