Update all usage of activeMachine to the new API

This commit is contained in:
Arjen Hiemstra 2015-08-05 20:12:29 +02:00
parent 1ff3a30ede
commit 1947d773a3
3 changed files with 6 additions and 6 deletions

View file

@ -66,7 +66,7 @@ class PrintInformation(QObject):
self._slice_pass = None
self._slice_reason = None
Application.getInstance().activeMachineChanged.connect(self._onActiveMachineChanged)
Application.getInstance().getMachineManager().activeMachineInstanceChanged.connect(self._onActiveMachineChanged)
self._onActiveMachineChanged()
Application.getInstance().getController().getScene().sceneChanged.connect(self._onSceneChanged)
@ -179,7 +179,7 @@ class PrintInformation(QObject):
if self._current_settings:
self._current_settings.settingChanged.disconnect(self._onSettingChanged)
self._current_settings = Application.getInstance().getActiveMachine()
self._current_settings = Application.getInstance().getMachineManager().getActiveMachineInstance()
if self._current_settings:
self._current_settings.settingChanged.connect(self._onSettingChanged)