mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21:36:55 -05:00
Clean up webview after fields dialog closed
https://github.com/ankitects/anki/pull/1706#issuecomment-1058056161
This commit is contained in:
parent
76bdfb3899
commit
4066518808
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ class FieldDialog(QDialog):
|
||||||
open_at: int = 0,
|
open_at: int = 0,
|
||||||
) -> None:
|
) -> None:
|
||||||
QDialog.__init__(self, parent or mw)
|
QDialog.__init__(self, parent or mw)
|
||||||
|
mw.garbage_collect_on_dialog_finish(self)
|
||||||
self.mw = mw
|
self.mw = mw
|
||||||
self.col = self.mw.col
|
self.col = self.mw.col
|
||||||
self.mm = self.mw.col.models
|
self.mm = self.mw.col.models
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue