Setting state is now set to calculated after setting the value

This ensures that the setting of the value does not overide the state

CURA-2221
This commit is contained in:
Jaime van Kessel 2016-09-01 13:00:54 +02:00
parent d8c7b325f0
commit 9d6c60ec60

View File

@ -246,8 +246,8 @@ Item {
// This ensures that the value in any of the deeper containers need not be removed, which is
// needed for the reset button (which deletes the top value) to correctly go back to profile
// defaults.
propertyProvider.setPropertyValue("state", "InstanceState.Calculated")
propertyProvider.setPropertyValue("value", propertyProvider.getPropertyValue("value", last_entry))
propertyProvider.setPropertyValue("state", "InstanceState.Calculated")
}
}