From fb0df3109c4d050cf623a4551cb7b6ac467cb46f Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 24 Apr 2017 13:10:33 +0200 Subject: [PATCH] Fixed inhertiance manager getting update from a Category setting --- cura/Settings/SettingInheritanceManager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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.