Merge pull request #529 from Arthur-Milchior/load_note_once_on_note_type_change

Ensuring "setNote" is called only once during changing of note type
This commit is contained in:
Damien Elmes 2020-03-27 15:28:49 +10:00 committed by GitHub
commit d81c725b46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,6 @@ class AddCards(QDialog):
except IndexError:
pass
self.removeTempNote(oldNote)
self.editor.setNote(note)
def onReset(self, model: None = None, keep: bool = False) -> None:
oldNote = self.editor.note