From 7bb70415bc8ff8785c96e4bc718d9c8671c62344 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 23 Aug 2013 15:30:24 +0200 Subject: [PATCH] Fix (I think) for bug #1215885 - refresh rows when convert finishes so composites can update. --- src/calibre/gui2/actions/convert.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/actions/convert.py b/src/calibre/gui2/actions/convert.py index aaadd1a452..dd5121abf9 100644 --- a/src/calibre/gui2/actions/convert.py +++ b/src/calibre/gui2/actions/convert.py @@ -263,9 +263,11 @@ class ConvertAction(InterfaceAction): pass self.gui.tags_view.recount() if self.gui.current_view() is self.gui.library_view: - current = self.gui.library_view.currentIndex() + lv = self.gui.library_view + current = lv.currentIndex() if current.isValid(): - self.gui.library_view.model().current_changed(current, QModelIndex()) + lv.model().refresh_ids((book_id,)) + lv.model().current_changed(current, QModelIndex()) if manually_fine_tune_toc: self.gui.iactions['Edit ToC'].do_one(book_id, fmt.upper())