mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #9073 (Book details not updated after drag/drop of format)
This commit is contained in:
parent
3229f73b3e
commit
98ea598b96
@ -259,6 +259,13 @@ class AddAction(InterfaceAction):
|
|||||||
if hasattr(self.gui, 'db_images'):
|
if hasattr(self.gui, 'db_images'):
|
||||||
self.gui.db_images.reset()
|
self.gui.db_images.reset()
|
||||||
self.gui.tags_view.recount()
|
self.gui.tags_view.recount()
|
||||||
|
# The formats of the current book could have changed if
|
||||||
|
# automerge is enabled
|
||||||
|
current_idx = self.gui.library_view.currentIndex()
|
||||||
|
if current_idx.isValid():
|
||||||
|
self.gui.library_view.model().current_changed(current_idx,
|
||||||
|
current_idx)
|
||||||
|
|
||||||
if getattr(self._adder, 'merged_books', False):
|
if getattr(self._adder, 'merged_books', False):
|
||||||
books = u'\n'.join([x if isinstance(x, unicode) else
|
books = u'\n'.join([x if isinstance(x, unicode) else
|
||||||
x.decode(preferred_encoding, 'replace') for x in
|
x.decode(preferred_encoding, 'replace') for x in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user