make sure to properly close the deck

This commit is contained in:
Damien Elmes 2008-12-11 01:13:07 +09:00
parent 9de0fc911e
commit 2129554ab1

View file

@ -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)