Fix #1240 (Error: Cannot kill witing job)

This commit is contained in:
Kovid Goyal 2008-11-09 15:51:04 -08:00
parent 76eca156c6
commit 9ac26ded49

View File

@ -167,8 +167,8 @@ class JobManager(QAbstractTableModel):
_('Job has already run')).exec_()
return
if not job.is_running:
error_dialog(view, _('Cannot kill job'),
_('Cannot kill waiting job')).exec_()
self.jobs.remove(job)
self.reset()
return