Improved the job dispatch system. Now after a job has completed, it remains in the list and you can view any output from it, by double clicking the list entry.

This commit is contained in:
Kovid Goyal 2008-01-31 01:52:09 +00:00
parent 536a4eaf00
commit d46b168871

View File

@ -151,13 +151,10 @@ class JobManager(QAbstractTableModel):
def terminate_device_jobs(self):
changed = False
for key in self.jobs.keys():
if isinstance(self.jobs[key], DeviceJob):
changed = True
job = self.jobs.pop(key)
for job in self.running_jobs:
if isinstance(job, DeviceJob):
job.terminate()
if changed:
self.reset()
def timerEvent(self, event):
if event.timerId() == self.timer_id: