From 87dc87ee12f72477540d5900455564af3efa02cd Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 6 Dec 2019 14:28:57 +1000 Subject: [PATCH] clear undo when adding card https://anki.tenderapp.com/discussions/ankidesktop/36541-anki-nuked-all-entered-notes-on-undo --- aqt/addcards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aqt/addcards.py b/aqt/addcards.py index d4e7e27c8..b97b559a4 100644 --- a/aqt/addcards.py +++ b/aqt/addcards.py @@ -176,6 +176,7 @@ class AddCards(QDialog): The input you have provided would make an empty \ question on all cards."""), help="AddItems") return + self.mw.col.clearUndo() self.addHistory(note) self.mw.requireReset() self.previousNote = note