mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54: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:
|
if row is not None:
|
||||||
ci = view.model().index(row, 0)
|
ci = view.model().index(row, 0)
|
||||||
if ci.isValid():
|
if ci.isValid():
|
||||||
view.setCurrentIndex(ci)
|
view.set_current_row(row)
|
||||||
sm = view.selectionModel()
|
|
||||||
sm.select(ci, sm.Select)
|
|
||||||
else:
|
else:
|
||||||
if not confirm('<p>'+_('The selected books will be '
|
if not confirm('<p>'+_('The selected books will be '
|
||||||
'<b>permanently deleted</b> '
|
'<b>permanently deleted</b> '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user