Update formats composite column in GUI when conversion finishes

Ensure that the Formats custom column (if present) is updated when a new
format is created as a result of a conversion. Fixes #1215885 [calibre 0.9: strange display behavior for formats](https://bugs.launchpad.net/calibre/+bug/1215885)

Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
Kovid Goyal 2013-08-23 20:01:06 +05:30
commit 7eb6bcaf39

View File

@ -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
lv.model().refresh_ids((book_id,))
current = lv.currentIndex()
if current.isValid():
self.gui.library_view.model().current_changed(current, QModelIndex())
lv.model().current_changed(current, QModelIndex())
if manually_fine_tune_toc:
self.gui.iactions['Edit ToC'].do_one(book_id, fmt.upper())