mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fix pin toggle causing saved tags to get lost
This commit is contained in:
parent
e387c1f6f1
commit
0e3ada4fcf
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ class AddCards(QDialog):
|
||||||
old_field_name = old.model()["flds"][n]["name"]
|
old_field_name = old.model()["flds"][n]["name"]
|
||||||
if old_field_name not in new_fields:
|
if old_field_name not in new_fields:
|
||||||
new.fields[n] = old.fields[n]
|
new.fields[n] = old.fields[n]
|
||||||
|
new.tags = old.tags
|
||||||
|
|
||||||
# and update editor state
|
# and update editor state
|
||||||
self.editor.note = new
|
self.editor.note = new
|
||||||
|
|
Loading…
Reference in a new issue