onModelChange save note

I like the way onModelChange is done. Except that you forget to use
the note you computed.
This commit is contained in:
Arthur Milchior 2020-04-26 16:09:14 +02:00
parent 36ea980725
commit 936bb31997

View file

@ -114,6 +114,9 @@ class AddCards(QDialog):
except IndexError:
pass
self.removeTempNote(oldNote)
self.editor.note = note
# When on model change is called, reset is necessarily called.
# Reset load note, so it is not required to load it here.
def onReset(self, model: None = None, keep: bool = False) -> None:
oldNote = self.editor.note