mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -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)
|
||||
settings_with_inheritance_warning_changed = True
|
||||
|
||||
# Find the topmost parent (Assumed to be a category)
|
||||
parent = definitions[0].parent
|
||||
if parent is None:
|
||||
return
|
||||
|
||||
# Find the topmost parent (Assumed to be a category)
|
||||
while parent.parent is not None:
|
||||
parent = parent.parent
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue