mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -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]
|
note.fields[n] = oldNote.fields[n]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
pass
|
pass
|
||||||
|
self.removeTempNote(oldNote)
|
||||||
self.editor.currentField = 0
|
self.editor.currentField = 0
|
||||||
self.editor.setNote(note, focus=True)
|
self.editor.setNote(note, focus=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue