diff --git a/aqt/addcards.py b/aqt/addcards.py index 2ef06f277..c5740505c 100644 --- a/aqt/addcards.py +++ b/aqt/addcards.py @@ -169,12 +169,12 @@ question or answer on all cards."""), help="AddItems") def reject(self): if not self.canClose(): return + removeHook('reset', self.onReset) clearAudioQueue() self.removeTempFact(self.editor.fact) self.editor.setFact(None) self.modelChooser.cleanup() self.mw.maybeReset() - removeHook('reset', self.onReset) saveGeom(self, "add") aqt.dialogs.close("AddCards") QDialog.reject(self) diff --git a/aqt/editor.py b/aqt/editor.py index edf8a4180..e098ebdcc 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -312,6 +312,7 @@ class Editor(object): if str.startswith("blur") or str.startswith("key"): (type, txt) = str.split(":", 1) self.fact.fields[self.currentField] = self.mungeHTML(txt) + self.mw.requireReset() if type == "blur": if not self._keepButtons: self.disableButtons() diff --git a/aqt/main.py b/aqt/main.py index 4136ef669..39105c3fd 100755 --- a/aqt/main.py +++ b/aqt/main.py @@ -153,7 +153,7 @@ class AnkiQt(QMainWindow): %s
%s """ % (_("Close the editing window to resume."), - self.button("refresh", _("Return"))), css=self.sharedCSS) + self.button("refresh", _("Resume Now"))), css=self.sharedCSS) # HTML helpers ##########################################################################