Fix error when exporting from empty cards screen

https://forums.ankiweb.net/t/bug-copy-debug-info-button-crashes-anki-24-04-and-24-06-3/50852
This commit is contained in:
Damien Elmes 2024-10-22 23:24:27 +10:00
parent 23b7d63659
commit 31fe7f2c89

View file

@ -38,7 +38,7 @@ class EmptyCardsDialog(QDialog):
def __init__(self, mw: aqt.main.AnkiQt, report: EmptyCardsReport) -> None:
super().__init__(mw)
self.mw = mw.weakref()
self.mw = mw
self.mw.garbage_collect_on_dialog_finish(self)
self.report = report
self.form = aqt.forms.emptycards.Ui_Dialog()