mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix crash loading almost empty project. Added return value to functions in SettingInheritanceManager
This commit is contained in:
parent
88f73d881c
commit
4085cfe67e
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ class SettingInheritanceManager(QObject):
|
|||
def getChildrenKeysWithOverride(self, key):
|
||||
definitions = self._global_container_stack.getBottom().findDefinitions(key=key)
|
||||
if not definitions:
|
||||
return
|
||||
return []
|
||||
result = []
|
||||
for key in definitions[0].getAllKeys():
|
||||
if key in self._settings_with_inheritance_warning:
|
||||
|
@ -51,7 +51,7 @@ class SettingInheritanceManager(QObject):
|
|||
|
||||
definitions = self._global_container_stack.getBottom().findDefinitions(key=key)
|
||||
if not definitions:
|
||||
return
|
||||
return []
|
||||
result = []
|
||||
for key in definitions[0].getAllKeys():
|
||||
if self._settingIsOverwritingInheritance(key, extruder):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue