Added delete to printerOutput device to ensure it is properly closed

CURA-1339
This commit is contained in:
Jaime van Kessel 2016-04-13 09:57:36 +02:00
parent de9721e5de
commit a4314638ab

View File

@ -90,6 +90,10 @@ class PrinterOutputDevice(OutputDevice):
def close(self): def close(self):
pass pass
## Ensure that close gets called when object is destroyed
def __del__(self):
self.close()
@pyqtProperty(float, notify = headPositionChanged) @pyqtProperty(float, notify = headPositionChanged)
def headX(self): def headX(self):
return self._head_x return self._head_x