From ec2bcf9eddc9abda3fffd1d48af2cde246b792fe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Oct 2011 05:39:04 +0530 Subject: [PATCH] Fix typo that broke stopping selected jobs in 0.8.22 --- src/calibre/gui2/jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/jobs.py b/src/calibre/gui2/jobs.py index 3ebfed6743..07b05afdc3 100644 --- a/src/calibre/gui2/jobs.py +++ b/src/calibre/gui2/jobs.py @@ -500,7 +500,8 @@ class JobsDialog(QDialog, Ui_JobsDialog): def kill_job(self, *args): rows = [index.row() for index in self.jobs_view.selectionModel().selectedRows()] - return error_dialog(self, _('No job'), + if not rows: + return error_dialog(self, _('No job'), _('No job selected'), show=True) if question_dialog(self, _('Are you sure?'), ngettext('Do you really want to stop the selected job?',