Fix two "critical errors" on startup

CuraMachineManager.isGlobalStackValid would return None on startup, which qml does not like.

CURA-1585
This commit is contained in:
fieldOfView 2016-07-01 10:12:11 +02:00
parent 58ae1e923c
commit fea534509e

View file

@ -213,7 +213,7 @@ class MachineManagerModel(QObject):
# Calling _checkStackForErrors on every change is simply too expensive
@pyqtProperty(bool, notify = globalValidationChanged)
def isGlobalStackValid(self):
return self._global_stack_valid
return bool(self._global_stack_valid)
@pyqtProperty(str, notify = activeStackChanged)
def activeUserProfileId(self):