From 98ea598b9605d4a18df9fe45c5ca0bd7b9bc0593 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Feb 2011 15:34:51 -0700 Subject: [PATCH] Fix #9073 (Book details not updated after drag/drop of format) --- src/calibre/gui2/actions/add.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/calibre/gui2/actions/add.py b/src/calibre/gui2/actions/add.py index 49a7a4677a..de2e7aa2f7 100644 --- a/src/calibre/gui2/actions/add.py +++ b/src/calibre/gui2/actions/add.py @@ -259,6 +259,13 @@ class AddAction(InterfaceAction): if hasattr(self.gui, 'db_images'): self.gui.db_images.reset() 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): books = u'\n'.join([x if isinstance(x, unicode) else x.decode(preferred_encoding, 'replace') for x in