mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix "stop selected Jobs" button trying to stop the same job multiple times
This commit is contained in:
parent
ba2b3f05bd
commit
dea910599f
@ -457,7 +457,7 @@ class JobsDialog(QDialog, Ui_JobsDialog):
|
|||||||
|
|
||||||
def kill_job(self, *args):
|
def kill_job(self, *args):
|
||||||
if question_dialog(self, _('Are you sure?'), _('Do you really want to stop the selected job?')):
|
if question_dialog(self, _('Are you sure?'), _('Do you really want to stop the selected job?')):
|
||||||
for index in self.jobs_view.selectedIndexes():
|
for index in self.jobs_view.selectionModel().selectedRows():
|
||||||
row = index.row()
|
row = index.row()
|
||||||
self.model.kill_job(row, self)
|
self.model.kill_job(row, self)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user