mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-09 22:24:26 +01:00
Fix #850764 (Killing multiple jobs: Local variabele j assignation in wrong order)
This commit is contained in:
parent
388968cd88
commit
0a83aba96e
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ def kill_job(self, row, view):
|
|||
|
||||
def kill_multiple_jobs(self, rows, view):
|
||||
jobs = [self.jobs[row] for row in rows]
|
||||
devjobs = [j for j in jobs is isinstance(j, DeviceJob)]
|
||||
devjobs = [j for j in jobs if isinstance(j, DeviceJob)]
|
||||
if devjobs:
|
||||
error_dialog(view, _('Cannot kill job'),
|
||||
_('Cannot kill jobs that communicate with the device')).exec_()
|
||||
|
|
|
|||
Loading…
Reference in a new issue