From 2129554ab188a8deb4e9900638e78347a7e9fe2b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 11 Dec 2008 01:13:07 +0900 Subject: [PATCH] make sure to properly close the deck --- ankiqt/ui/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 5d364185b..afea82c2a 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -632,6 +632,7 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2}) pass # close self.deck.rollback() + self.deck.close() self.deck = None if name.startswith("untitled") and not count: os.unlink(path)