From 21c62c241f61fb7817152dd811ad3b39d5415044 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 20 Jul 2010 16:47:26 -0600 Subject: [PATCH] Fix #6209 (deleting book leaves next book highlighted but not selected) --- src/calibre/gui2/actions.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 '