Only disable timer of backend if it's initialised

Fixes #1939
This commit is contained in:
Jaime van Kessel 2017-06-06 15:42:49 +02:00
parent 707f261503
commit b18b1d3cd0

View file

@ -69,7 +69,8 @@ class MachineSettingsAction(MachineAction):
self._container_index = container_index self._container_index = container_index
self.containerIndexChanged.emit() self.containerIndexChanged.emit()
# Disable autoslicing while the machineaction is showing # Disable auto-slicing while the MachineAction is showing
if self._backend: # This sometimes triggers before backend is loaded.
self._backend.disableTimer() self._backend.disableTimer()
@pyqtSlot() @pyqtSlot()