mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
clear undo when adding card
https://anki.tenderapp.com/discussions/ankidesktop/36541-anki-nuked-all-entered-notes-on-undo
This commit is contained in:
parent
b1267028e3
commit
87dc87ee12
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue