Added PrintJob handling to ClusterUM3

CL-541
This commit is contained in:
Jaime van Kessel 2017-11-21 11:01:19 +01:00
parent 152f3462ce
commit b1649f2d38
4 changed files with 68 additions and 5 deletions

View file

@ -145,6 +145,10 @@ class PrinterOutputModel(QObject):
def updateActivePrintJob(self, print_job):
if self._active_print_job != print_job:
if self._active_print_job is not None:
self._active_print_job.updateAssignedPrinter(None)
if print_job is not None:
print_job.updateAssignedPrinter(self)
self._active_print_job = print_job
self.activePrintJobChanged.emit()