From 2297a6e80ba9345b1a6426ffc7bcae8f92e61cf2 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 24 Apr 2017 13:05:39 +0200 Subject: [PATCH] Fixed inhertiance manager crashing if there is no parent --- cura/Settings/SettingInheritanceManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cura/Settings/SettingInheritanceManager.py b/cura/Settings/SettingInheritanceManager.py index 2f81526813..49cf5c7c83 100644 --- a/cura/Settings/SettingInheritanceManager.py +++ b/cura/Settings/SettingInheritanceManager.py @@ -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