Fix typo that broke stopping selected jobs in 0.8.22

This commit is contained in:
Kovid Goyal 2011-10-15 05:39:04 +05:30
parent 37098e6ddf
commit ec2bcf9edd

View File

@ -500,7 +500,8 @@ class JobsDialog(QDialog, Ui_JobsDialog):
def kill_job(self, *args): def kill_job(self, *args):
rows = [index.row() for index in rows = [index.row() for index in
self.jobs_view.selectionModel().selectedRows()] 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) _('No job selected'), show=True)
if question_dialog(self, _('Are you sure?'), if question_dialog(self, _('Are you sure?'),
ngettext('Do you really want to stop the selected job?', ngettext('Do you really want to stop the selected job?',