instead of changing default deck on add, only set once

This commit is contained in:
Damien Elmes 2012-05-20 17:12:16 +09:00
parent c918f6dd91
commit 4998e038bb

View file

@ -674,6 +674,7 @@ class Editor(object):
self.tags.setCol(self.mw.col) self.tags.setCol(self.mw.col)
if self.addMode: if self.addMode:
if self.mw.col.conf.get("addToCur", True): if self.mw.col.conf.get("addToCur", True):
if not self.deck.text():
col = self.mw.col col = self.mw.col
did = col.conf['curDeck'] did = col.conf['curDeck']
if col.decks.isDyn(did): if col.decks.isDyn(did):