If a reserved job is moved to a printer that can do it, it' s correclty removed from the old printer

CL-541
This commit is contained in:
Jaime van Kessel 2017-12-22 12:04:02 +01:00
parent 931c87716b
commit eb27695d52
2 changed files with 9 additions and 2 deletions

View file

@ -180,11 +180,14 @@ 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)
old_print_job = self._active_print_job
if print_job is not None:
print_job.updateAssignedPrinter(self)
self._active_print_job = print_job
if old_print_job is not None:
old_print_job.updateAssignedPrinter(None)
self.activePrintJobChanged.emit()
def updateState(self, printer_state):