mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #6209 (deleting book leaves next book highlighted but not selected)
This commit is contained in:
parent
8bc5d011eb
commit
21c62c241f
@ -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> '
|
||||
|
Loading…
x
Reference in New Issue
Block a user