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