Browse Source

Concerning the unfortunate crash...

..of the morning of the 13th day of March, in the 2018th year of our lord.
Ian Paschal 7 years ago
parent
commit
69dc4fa5e0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cura/Settings/MachineManager.py

+ 2 - 0
cura/Settings/MachineManager.py

@@ -875,6 +875,8 @@ class MachineManager(QObject):
 
     @pyqtProperty("QVariantList", notify = globalContainerChanged)
     def currentExtruderPositions(self):
+        if self._global_container_stack is None:
+            return []
         return sorted(list(self._global_container_stack.extruders.keys()))
 
     ##  Update _current_root_material_id and _current_root_material_name when