mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fixed inhertiance manager getting update from a Category setting
This commit is contained in:
parent
2297a6e80b
commit
fb0df3109c
1 changed files with 5 additions and 5 deletions
|
@ -110,12 +110,12 @@ class SettingInheritanceManager(QObject):
|
||||||
settings_with_inheritance_warning_changed = True
|
settings_with_inheritance_warning_changed = True
|
||||||
|
|
||||||
parent = definitions[0].parent
|
parent = definitions[0].parent
|
||||||
if parent is None:
|
|
||||||
return
|
|
||||||
|
|
||||||
# Find the topmost parent (Assumed to be a category)
|
# Find the topmost parent (Assumed to be a category)
|
||||||
while parent.parent is not None:
|
if parent is not None:
|
||||||
parent = parent.parent
|
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:
|
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.
|
# Category was not in the list yet, so needs to be added now.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue