From 0a83aba96e36c2dbf2e2db44f3bc1acfbf2f8e88 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Sep 2011 10:52:48 -0600 Subject: [PATCH] Fix #850764 (Killing multiple jobs: Local variabele j assignation in wrong order) --- src/calibre/gui2/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/jobs.py b/src/calibre/gui2/jobs.py index b7992eb319..a6011abaa0 100644 --- a/src/calibre/gui2/jobs.py +++ b/src/calibre/gui2/jobs.py @@ -266,7 +266,7 @@ class JobManager(QAbstractTableModel): # {{{ 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_()