mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -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 \
|
The input you have provided would make an empty \
|
||||||
question on all cards."""), help="AddItems")
|
question on all cards."""), help="AddItems")
|
||||||
return
|
return
|
||||||
|
self.mw.col.clearUndo()
|
||||||
self.addHistory(note)
|
self.addHistory(note)
|
||||||
self.mw.requireReset()
|
self.mw.requireReset()
|
||||||
self.previousNote = note
|
self.previousNote = note
|
||||||
|
|
Loading…
Reference in a new issue