fixed exceptions caused by disconnecting printer

This commit is contained in:
Jaime van Kessel 2015-04-07 15:19:44 +02:00
parent f12f20afee
commit ec1500860f

View file

@ -288,6 +288,7 @@ class PrinterApplication(QtApplication):
self.outputDevicesChanged.emit()
def removeOutputDevice(self, id):
if id in self._output_devices:
del self._output_devices[id]
self.outputDevicesChanged.emit()