fix remembered tags not being applied to next added note

https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/56
This commit is contained in:
Damien Elmes 2021-05-27 13:18:34 +10:00
parent f26c7ed99e
commit 83a1d99e22

View File

@ -150,6 +150,8 @@ class AddCards(QDialog):
for n in range(min(len(note.fields), len(old_note.fields))): for n in range(min(len(note.fields), len(old_note.fields))):
if flds[n]["sticky"]: if flds[n]["sticky"]:
note.fields[n] = old_note.fields[n] note.fields[n] = old_note.fields[n]
# and tags
note.tags = old_note.tags
self.setAndFocusNote(note) self.setAndFocusNote(note)
def on_operation_did_execute( def on_operation_did_execute(