mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1550520 [after merging 2 books (hotkey M) focus is gone](https://bugs.launchpad.net/calibre/+bug/1550520)
This commit is contained in:
parent
98228ae614
commit
1103a49034
@ -481,10 +481,7 @@ class EditMetadataAction(InterfaceAction):
|
||||
for row in rows:
|
||||
if row.row() < rows[0].row():
|
||||
dest_row -= 1
|
||||
ci = self.gui.library_view.model().index(dest_row, 0)
|
||||
if ci.isValid():
|
||||
self.gui.library_view.setCurrentIndex(ci)
|
||||
self.gui.library_view.model().current_changed(ci, ci)
|
||||
self.gui.library_view.set_current_row(dest_row)
|
||||
|
||||
def add_formats(self, dest_id, src_books, replace=False):
|
||||
for src_book in src_books:
|
||||
|
Loading…
x
Reference in New Issue
Block a user