diff --git a/cura/Settings/SettingInheritanceManager.py b/cura/Settings/SettingInheritanceManager.py index 49cf5c7c83..ff0d1d81c0 100644 --- a/cura/Settings/SettingInheritanceManager.py +++ b/cura/Settings/SettingInheritanceManager.py @@ -110,12 +110,12 @@ class SettingInheritanceManager(QObject): settings_with_inheritance_warning_changed = True 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 + if parent is not None: + while parent.parent is not None: + parent = parent.parent + else: + parent = definitions[0] # Already at a category if parent.key not in self._settings_with_inheritance_warning and has_overwritten_inheritance: # Category was not in the list yet, so needs to be added now.