honor the 'add to current deck' option in importer too

This commit is contained in:
Damien Elmes 2012-05-14 05:57:46 +09:00
parent 788a2f1989
commit 5970185301

View file

@ -87,8 +87,13 @@ class ImportDialog(QDialog):
self.importer.model = self.mw.col.models.current()
self.importer.initMapping()
self.showMapping()
self.deck.setText(self.mw.col.decks.name(
self.importer.model['did']))
if self.mw.col.conf.get("addToCur", True):
did = self.mw.col.conf['curDeck']
if self.mw.col.decks.isDyn(did):
did = 1
else:
did = self.importer.model['did']
self.deck.setText(self.mw.col.decks.name(did))
def onDelimiter(self):
str = getOnlyText(_("""\