mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Fixed inhertiance manager crashing if there is no parent
This commit is contained in:
parent
2fda85a6aa
commit
2297a6e80b
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue