Clean up webview after fields dialog closed

https://github.com/ankitects/anki/pull/1706#issuecomment-1058056161
This commit is contained in:
Damien Elmes 2022-03-04 17:23:28 +10:00
parent 76bdfb3899
commit 4066518808

View File

@ -38,6 +38,7 @@ class FieldDialog(QDialog):
open_at: int = 0,
) -> None:
QDialog.__init__(self, parent or mw)
mw.garbage_collect_on_dialog_finish(self)
self.mw = mw
self.col = self.mw.col
self.mm = self.mw.col.models