Save importing model in any case
https://forums.ankiweb.net/t/bug-notes-are-imported-to-the-wrong-deck-in-certain-cases/4318
This commit is contained in:
parent
06292a45f3
commit
236a6071d4
@ -189,9 +189,8 @@ you can enter it here. Use \\t to represent tab."""
|
|||||||
self.importer.tagModified = self.frm.tagModified.text()
|
self.importer.tagModified = self.frm.tagModified.text()
|
||||||
self.mw.pm.profile["tagModified"] = self.importer.tagModified
|
self.mw.pm.profile["tagModified"] = self.importer.tagModified
|
||||||
did = self.deck.selectedId()
|
did = self.deck.selectedId()
|
||||||
if did != self.importer.model["did"]:
|
self.importer.model["did"] = did
|
||||||
self.importer.model["did"] = did
|
self.mw.col.models.save(self.importer.model, updateReqs=False)
|
||||||
self.mw.col.models.save(self.importer.model, updateReqs=False)
|
|
||||||
self.mw.col.decks.select(did)
|
self.mw.col.decks.select(did)
|
||||||
self.mw.progress.start()
|
self.mw.progress.start()
|
||||||
self.mw.checkpoint(_("Import"))
|
self.mw.checkpoint(_("Import"))
|
||||||
|
Loading…
Reference in New Issue
Block a user