mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
always deinit modelchooser
This commit is contained in:
parent
7c3b706478
commit
e7223120ea
1 changed files with 1 additions and 0 deletions
|
|
@ -185,6 +185,7 @@ question or answer on all cards."""), parent=self)
|
||||||
if (self.forceClose or self.editor.fieldsAreBlank() or
|
if (self.forceClose or self.editor.fieldsAreBlank() or
|
||||||
ui.utils.askUser(_("Close and lose current input?"),
|
ui.utils.askUser(_("Close and lose current input?"),
|
||||||
self)):
|
self)):
|
||||||
|
self.modelChooser.deinit()
|
||||||
self.editor.close()
|
self.editor.close()
|
||||||
ui.dialogs.close("AddCards")
|
ui.dialogs.close("AddCards")
|
||||||
self.parent.deck.s.flush()
|
self.parent.deck.s.flush()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue