Backend now correctly handles machine instance change

CURA-1323
This commit is contained in:
Jaime van Kessel 2016-04-04 10:29:42 +02:00
parent 2b8914ea46
commit 819c9568b1

View file

@ -53,7 +53,9 @@ class CuraEngineBackend(Backend):
self._onActiveViewChanged()
self._stored_layer_data = None
Application.getInstance().getMachineManager().activeMachineInstanceChanged.connect(self._onChanged)
# When there are current settings and machine instance is changed, there is no profile changed event. We should
# pretend there is though.
Application.getInstance().getMachineManager().activeMachineInstanceChanged.connect(self._onActiveProfileChanged)
self._profile = None
Application.getInstance().getMachineManager().activeProfileChanged.connect(self._onActiveProfileChanged)