isGlobalStack valid no longer remains false after it has been invalid once

This commit is contained in:
Jaime van Kessel 2016-06-24 15:59:31 +02:00
parent 727c34b535
commit 696f904f3e

View file

@ -84,8 +84,8 @@ class MachineManagerModel(QObject):
self._global_stack_valid = False self._global_stack_valid = False
self.globalValidationChanged.emit() self.globalValidationChanged.emit()
else: else:
new_validation_state = self._checkStackForErrors(self._active_container_stack) has_errors = self._checkStackForErrors(self._active_container_stack)
if new_validation_state: if not has_errors:
self._global_stack_valid = True self._global_stack_valid = True
self.globalValidationChanged.emit() self.globalValidationChanged.emit()