mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
make sure we checkpoint correctly
This commit is contained in:
parent
b5e76f78cb
commit
56e6e3bb52
1 changed files with 1 additions and 2 deletions
|
@ -12,7 +12,7 @@ class Models(QDialog):
|
||||||
self.parent = parent or mw
|
self.parent = parent or mw
|
||||||
QDialog.__init__(self, self.parent, Qt.Window)
|
QDialog.__init__(self, self.parent, Qt.Window)
|
||||||
self.deck = mw.deck
|
self.deck = mw.deck
|
||||||
self.deck.save(_("Models"))
|
self.mw.checkpoint(_("Models"))
|
||||||
#self.m = model
|
#self.m = model
|
||||||
self.form = aqt.forms.models.Ui_Dialog()
|
self.form = aqt.forms.models.Ui_Dialog()
|
||||||
self.form.setupUi(self)
|
self.form.setupUi(self)
|
||||||
|
@ -188,7 +188,6 @@ class Models(QDialog):
|
||||||
# need to flush model on change or reject
|
# need to flush model on change or reject
|
||||||
|
|
||||||
def reject(self):
|
def reject(self):
|
||||||
#self.saveCurrentCard()
|
|
||||||
self.saveModel()
|
self.saveModel()
|
||||||
self.mw.reset()
|
self.mw.reset()
|
||||||
QDialog.reject(self)
|
QDialog.reject(self)
|
||||||
|
|
Loading…
Reference in a new issue