diff --git a/src/calibre/gui2/actions.py b/src/calibre/gui2/actions.py index 9522083b98..a49ff76e67 100644 --- a/src/calibre/gui2/actions.py +++ b/src/calibre/gui2/actions.py @@ -578,9 +578,7 @@ class DeleteAction(object): # {{{ if row is not None: ci = view.model().index(row, 0) if ci.isValid(): - view.setCurrentIndex(ci) - sm = view.selectionModel() - sm.select(ci, sm.Select) + view.set_current_row(row) else: if not confirm('

'+_('The selected books will be ' 'permanently deleted '