mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
we can revert to fix#1 for the modSchema issue now
as we save at start of change note type screen, instead of in beginReset()
This commit is contained in:
parent
407aaae797
commit
7c76a23cce
1 changed files with 2 additions and 1 deletions
|
@ -1728,7 +1728,8 @@ Are you sure you want to continue?""")):
|
||||||
QDialog.accept(self)
|
QDialog.accept(self)
|
||||||
self.browser.mw.checkpoint(_("Change Note Type"))
|
self.browser.mw.checkpoint(_("Change Note Type"))
|
||||||
b = self.browser
|
b = self.browser
|
||||||
b.mw.progress.start(immediate=True)
|
b.mw.col.modSchema(check=True)
|
||||||
|
b.mw.progress.start()
|
||||||
b.model.beginReset()
|
b.model.beginReset()
|
||||||
mm = b.mw.col.models
|
mm = b.mw.col.models
|
||||||
mm.change(self.oldModel, self.nids, self.targetModel, fmap, cmap)
|
mm.change(self.oldModel, self.nids, self.targetModel, fmap, cmap)
|
||||||
|
|
Loading…
Reference in a new issue