Fixed inhertiance manager getting update from a Category setting

This commit is contained in:
Jaime van Kessel 2017-04-24 13:10:33 +02:00
parent 2297a6e80b
commit fb0df3109c

View file

@ -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.