mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
commit
7eb6bcaf39
@ -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())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user