fix CSV import ignoring selected deck
This is a stop-gap - once the importing code is refactored, we should pass in the desired deck directly. https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/102
This commit is contained in:
parent
20276b6c48
commit
f5fbad2c20
@ -190,10 +190,10 @@ class ImportDialog(QDialog):
|
||||
self.mw.pm.profile["allowHTML"] = self.importer.allowHTML
|
||||
self.importer.tagModified = self.frm.tagModified.text()
|
||||
self.mw.pm.profile["tagModified"] = self.importer.tagModified
|
||||
did = self.deck.selected_deck_id
|
||||
self.importer.model["did"] = did
|
||||
self.mw.col.set_aux_notetype_config(
|
||||
self.importer.model["id"], "lastDeck", self.deck.selected_deck_id
|
||||
)
|
||||
self.mw.col.models.save(self.importer.model, updateReqs=False)
|
||||
self.mw.col.decks.select(did)
|
||||
self.mw.progress.start()
|
||||
self.mw.checkpoint(tr.actions_import())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user