mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
change current deck if user specified different one when adding
This commit is contained in:
parent
b2ac7517ef
commit
1794c69fe7
1 changed files with 4 additions and 0 deletions
|
@ -702,6 +702,10 @@ class Editor(object):
|
|||
did = 1
|
||||
showInfo(_("Using default deck instead of cram deck."))
|
||||
self.note.model()['did'] = did
|
||||
# if adding to the current and the user specified a different
|
||||
# deck, make that the current
|
||||
if self.mw.col.conf.get("addToCur", True):
|
||||
self.mw.col.decks.select(did)
|
||||
# save tags to model
|
||||
m = self.note.model()
|
||||
m['tags'] = self.note.tags
|
||||
|
|
Loading…
Reference in a new issue