Fix "stop selected Jobs" button trying to stop the same job multiple times

This commit is contained in:
Kovid Goyal 2011-06-12 11:24:32 -06:00
parent ba2b3f05bd
commit dea910599f

View File

@ -457,7 +457,7 @@ class JobsDialog(QDialog, Ui_JobsDialog):
def kill_job(self, *args):
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()
self.model.kill_job(row, self)