From 8f207cc900b06e5558c2b21367e39a5bd4e9d1f9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 20 May 2020 13:53:34 +1000 Subject: [PATCH] drop mw.weakref usage in models.py for now https://anki.tenderapp.com/discussions/beta-testing/1967-2126-189-g7384df8f-crash-at-note-types-fields-save --- qt/aqt/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/models.py b/qt/aqt/models.py index 4a903d816..f7b5afcb4 100644 --- a/qt/aqt/models.py +++ b/qt/aqt/models.py @@ -25,7 +25,7 @@ from aqt.utils import ( class Models(QDialog): def __init__(self, mw: AnkiQt, parent=None, fromMain=False): - self.mw = mw.weakref() + self.mw = mw parent = parent or mw self.fromMain = fromMain QDialog.__init__(self, parent, Qt.Window)