make sure to reset after deleting empty cards

https://anki.tenderapp.com/discussions/private/5067-anki-was-unable-to-open-your-file
This commit is contained in:
Damien Elmes 2020-08-09 12:42:58 +10:00
parent 05e90bcd23
commit 44fd50facb

View file

@ -82,6 +82,7 @@ class EmptyCardsDialog(QDialog):
finally: finally:
self.close() self.close()
tooltip(tr(TR.EMPTY_CARDS_DELETED_COUNT, cards=count)) tooltip(tr(TR.EMPTY_CARDS_DELETED_COUNT, cards=count))
self.mw.reset()
self.mw.taskman.run_in_background(delete, on_done) self.mw.taskman.run_in_background(delete, on_done)