mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 04:15:29 +01:00
Fix typo that broke stopping selected jobs in 0.8.22
This commit is contained in:
parent
37098e6ddf
commit
ec2bcf9edd
1 changed files with 2 additions and 1 deletions
|
|
@ -500,7 +500,8 @@ def show_details(self, *args):
|
|||
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?',
|
||||
|
|
|
|||
Loading…
Reference in a new issue