Only check for validationState changes if it's not already a value change

No need to check the second if-statement in most cases.

Contributes to issue CURA-3291.
This commit is contained in:
Ghostkeeper 2017-02-01 16:29:59 +01:00
parent 3ac9036b4a
commit 425dbf1ad8
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -300,7 +300,7 @@ class MachineManager(QObject):
# Notify UI items, such as the "changed" star in profile pull down menu.
self.activeStackValueChanged.emit()
if property_name == "validationState":
elif property_name == "validationState":
if not self._stacks_have_errors:
# fast update, we only have to look at the current changed property
if self._global_container_stack.getProperty("machine_extruder_count", "value") > 1 and self._active_container_stack.getProperty(key, "settable_per_extruder"):