Fix #1550520 [after merging 2 books (hotkey M) focus is gone](https://bugs.launchpad.net/calibre/+bug/1550520)

This commit is contained in:
Kovid Goyal 2016-03-01 12:26:05 +05:30
parent 98228ae614
commit 1103a49034

View File

@ -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: