mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 18:19:10 +08:00
Fixed inhertiance manager crashing if there is no parent
This commit is contained in:
parent
2fda85a6aa
commit
2297a6e80b
@ -109,8 +109,11 @@ class SettingInheritanceManager(QObject):
|
|||||||
self._settings_with_inheritance_warning.remove(key)
|
self._settings_with_inheritance_warning.remove(key)
|
||||||
settings_with_inheritance_warning_changed = True
|
settings_with_inheritance_warning_changed = True
|
||||||
|
|
||||||
# Find the topmost parent (Assumed to be a category)
|
|
||||||
parent = definitions[0].parent
|
parent = definitions[0].parent
|
||||||
|
if parent is None:
|
||||||
|
return
|
||||||
|
|
||||||
|
# Find the topmost parent (Assumed to be a category)
|
||||||
while parent.parent is not None:
|
while parent.parent is not None:
|
||||||
parent = parent.parent
|
parent = parent.parent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user