Delect selected files upon comm disconnect in the printer handler

Should solve #861
This commit is contained in:
Gina Häußge 2015-04-22 11:41:52 +02:00
parent a42c5edaa3
commit 88af79509f

View file

@ -762,6 +762,13 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
self._analysisQueue.resume() # printing done, put those cpu cycles to good use
elif self._comm is not None and state == self._comm.STATE_PRINTING:
self._analysisQueue.pause() # do not analyse files while printing
elif state == self._comm.STATE_CLOSED or state == self._comm.STATE_CLOSED_WITH_ERROR:
if self._comm is not None:
self._comm = None
self._setProgressData(0, None, None, None)
self._setCurrentZ(None)
self._setJobData(None, None, None)
self._setState(state)