mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
Merge pull request #166 from Glutanimate/prevent-empty-notes
Remove temporary notes when switching note model
This commit is contained in:
commit
f5b7f775f8
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ class AddCards(QDialog):
|
|||
note.fields[n] = oldNote.fields[n]
|
||||
except IndexError:
|
||||
pass
|
||||
self.removeTempNote(oldNote)
|
||||
self.editor.currentField = 0
|
||||
self.editor.setNote(note, focus=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue