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
This commit is contained in:
parent
4fd8a4cf2d
commit
8f207cc900
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user