From 44fd50facbdae5f25a765f8cade45ac967575797 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 9 Aug 2020 12:42:58 +1000 Subject: [PATCH] make sure to reset after deleting empty cards https://anki.tenderapp.com/discussions/private/5067-anki-was-unable-to-open-your-file --- qt/aqt/emptycards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/emptycards.py b/qt/aqt/emptycards.py index 55b02fb6b..ef3cae373 100644 --- a/qt/aqt/emptycards.py +++ b/qt/aqt/emptycards.py @@ -82,6 +82,7 @@ class EmptyCardsDialog(QDialog): finally: self.close() tooltip(tr(TR.EMPTY_CARDS_DELETED_COUNT, cards=count)) + self.mw.reset() self.mw.taskman.run_in_background(delete, on_done)