From 8b538ee20febdb48d8075844854aeeaaf67df832 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 10 Dec 2008 20:10:42 +0900 Subject: [PATCH] close all windows on sync --- ankiqt/ui/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 38fbb6e18..9cef4ad2b 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1162,6 +1162,8 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2}) self.sourcesToCheck = [] self.deck = None self.loadAfterSync = reload + # hide all deck-associated dialogs + ui.dialogs.closeAll() # bug triggered by preferences dialog - underlying c++ widgets are not # garbage collected until the middle of the child thread import gc; gc.collect()