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