From d46b1688716e69f4b40984a723e2fd4f0fffcf0e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 31 Jan 2008 01:52:09 +0000 Subject: [PATCH] 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. --- src/libprs500/gui2/jobs.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/libprs500/gui2/jobs.py b/src/libprs500/gui2/jobs.py index 749e34d9eb..a2cae559e0 100644 --- a/src/libprs500/gui2/jobs.py +++ b/src/libprs500/gui2/jobs.py @@ -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: