Formulas are no longer shown in discard changes dialog

CURA-3221
This commit is contained in:
Jaime van Kessel 2017-03-03 10:22:06 +01:00
parent cd9a8dbca5
commit 4514f53ea4

View file

@ -93,13 +93,14 @@ class UserChangesModel(ListModel):
break break
original_value = container.getProperty(setting_key, "value") original_value = container.getProperty(setting_key, "value")
if original_value is not None:
break
# If a value is a function, ensure it's called with the stack it's in. # If a value is a function, ensure it's called with the stack it's in.
if isinstance(original_value, SettingFunction): if isinstance(original_value, SettingFunction):
original_value = original_value(stack) original_value = original_value(stack)
if original_value is not None:
break
item_to_add = {"key": setting_key, item_to_add = {"key": setting_key,
"label": label, "label": label,
"user_value": str(user_changes.getProperty(setting_key, "value")), "user_value": str(user_changes.getProperty(setting_key, "value")),