Use callLater to set the active machine in MachineManager

This prevents exceptions in setActiveMachine from preventing Cura to
start.
This commit is contained in:
Arjen Hiemstra 2016-06-10 14:54:21 +02:00
parent f302e06654
commit 0aea7bdb5c

View file

@ -38,8 +38,7 @@ class MachineManagerModel(QObject):
if active_machine_id != "":
# An active machine was saved, so restore it.
self.setActiveMachine(active_machine_id)
pass
Application.getInstance().callLater(self.setActiveMachine, active_machine_id)
globalContainerChanged = pyqtSignal()
activeMaterialChanged = pyqtSignal()