Browse Source

Fix two "critical errors" on startup

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

CURA-1585
fieldOfView 8 years ago
parent
commit
fea534509e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/MachineManagerModel.py

+ 1 - 1
cura/MachineManagerModel.py

@@ -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):