mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21:36:55 -05:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue