mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-27 01:02:34 -04: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:
@@ -373,6 +373,8 @@ class Boss(QObject):
|
||||
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()
|
||||
# }}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user