Remove temporary note when switching note model

This commit is contained in:
Glutanimate 2017-02-16 05:00:49 +01:00
parent 082448744d
commit d530d5fdef

View file

@ -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)