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)