mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-03 07:44:24 +01:00
Edit book: Fix error when renaming the html file currently displayed in the preview panel and that file is not the file being currently edited
This commit is contained in:
parent
0cf4238d5e
commit
9b60f3cae6
1 changed files with 2 additions and 0 deletions
|
|
@ -373,6 +373,8 @@ def rename_done(self, name_map, job):
|
|||
if oldname in editors:
|
||||
editors[newname] = editors.pop(oldname)
|
||||
self.gui.central.rename_editor(editors[newname], newname)
|
||||
if self.gui.preview.current_name == oldname:
|
||||
self.gui.preview.current_name = newname
|
||||
self.apply_container_update_to_gui()
|
||||
# }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue