mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
honor the 'add to current deck' option in importer too
This commit is contained in:
parent
788a2f1989
commit
5970185301
1 changed files with 7 additions and 2 deletions
|
@ -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(_("""\
|
||||
|
|
Loading…
Reference in a new issue