Damien Elmes 2020-05-20 13:53:34 +10:00
parent 4fd8a4cf2d
commit 8f207cc900

View File

@ -25,7 +25,7 @@ from aqt.utils import (
class Models(QDialog): class Models(QDialog):
def __init__(self, mw: AnkiQt, parent=None, fromMain=False): def __init__(self, mw: AnkiQt, parent=None, fromMain=False):
self.mw = mw.weakref() self.mw = mw
parent = parent or mw parent = parent or mw
self.fromMain = fromMain self.fromMain = fromMain
QDialog.__init__(self, parent, Qt.Window) QDialog.__init__(self, parent, Qt.Window)