mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 15:16:28 +01:00
Do not error out when user clicks stop selected job with no job selected. Fixes #863766 (list index out of range after attempting to stop a job)
This commit is contained in:
parent
a569362a4c
commit
2af4016006
1 changed files with 2 additions and 0 deletions
|
|
@ -500,6 +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'),
|
||||
_('No job selected'), show=True)
|
||||
if question_dialog(self, _('Are you sure?'),
|
||||
ngettext('Do you really want to stop the selected job?',
|
||||
'Do you really want to stop all the selected jobs?',
|
||||
|
|
|
|||
Loading…
Reference in a new issue