diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 730cb356c..1ccd98080 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -537,7 +537,8 @@ class Editor: warnings.simplefilter("ignore", UserWarning) html = str(BeautifulSoup(html, "html.parser")) self.note.fields[field] = html - self.note.flush() + if not self.addMode: + self.note.flush() self.loadNote(focusTo=field) # Tag handling