From 4998e038bbff59e053a5bb3552dc57e3310a5db6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 20 May 2012 17:12:16 +0900 Subject: [PATCH] instead of changing default deck on add, only set once --- aqt/editor.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/aqt/editor.py b/aqt/editor.py index c6ed84147..9c34e0e11 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -674,12 +674,13 @@ class Editor(object): self.tags.setCol(self.mw.col) if self.addMode: if self.mw.col.conf.get("addToCur", True): - col = self.mw.col - did = col.conf['curDeck'] - if col.decks.isDyn(did): - did = 1 - self.deck.setText(self.mw.col.decks.nameOrNone( - did) or _("Default")) + if not self.deck.text(): + col = self.mw.col + did = col.conf['curDeck'] + if col.decks.isDyn(did): + did = 1 + self.deck.setText(self.mw.col.decks.nameOrNone( + did) or _("Default")) else: self.deck.setText(self.mw.col.decks.nameOrNone( self.note.model()['did']) or _("Default"))