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_() _('Job has already run')).exec_()
return return
if not job.is_running: if not job.is_running:
error_dialog(view, _('Cannot kill job'), self.jobs.remove(job)
_('Cannot kill waiting job')).exec_() self.reset()
return return