Fix #6209 (deleting book leaves next book highlighted but not selected)

This commit is contained in:
Kovid Goyal 2010-07-20 16:47:26 -06:00
parent 8bc5d011eb
commit 21c62c241f

View File

@ -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('<p>'+_('The selected books will be '
'<b>permanently deleted</b> '