mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
fixed exceptions caused by disconnecting printer
This commit is contained in:
parent
f12f20afee
commit
ec1500860f
1 changed files with 3 additions and 2 deletions
|
@ -288,8 +288,9 @@ class PrinterApplication(QtApplication):
|
||||||
self.outputDevicesChanged.emit()
|
self.outputDevicesChanged.emit()
|
||||||
|
|
||||||
def removeOutputDevice(self, id):
|
def removeOutputDevice(self, id):
|
||||||
del self._output_devices[id]
|
if id in self._output_devices:
|
||||||
self.outputDevicesChanged.emit()
|
del self._output_devices[id]
|
||||||
|
self.outputDevicesChanged.emit()
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def writeToOutputDevice(self, device):
|
def writeToOutputDevice(self, device):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue