From 1794c69fe731b29b75b15c1f467b3f7fa84ba7a5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 4 May 2012 23:00:11 +0900 Subject: [PATCH] change current deck if user specified different one when adding --- aqt/editor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aqt/editor.py b/aqt/editor.py index b3df93f48..e3284c07b 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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