mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit book: Fix error when merging html files that include a currently opened file and a non-html file is also open
This commit is contained in:
parent
a8a81594f4
commit
305379f27f
@ -1065,7 +1065,7 @@ class Boss(QObject):
|
||||
editor = editors.pop(name)
|
||||
self.gui.central.close_editor(editor)
|
||||
editor.break_cycles()
|
||||
if not editors:
|
||||
if not editors or getattr(self.gui.central.current_editor, 'syntax', None) != 'html':
|
||||
self.gui.preview.clear()
|
||||
|
||||
def insert_character(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user