From b351946f552a65e109cf22c382c4226d7e241521 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 2 Jun 2009 03:22:40 +0900 Subject: [PATCH] set state = nostate before sync to prevent keystrokes getting in --- ankiqt/ui/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 821052816..49f0e8d6e 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1771,6 +1771,7 @@ it to your friends. self.loadAfterSync = reload # bug triggered by preferences dialog - underlying c++ widgets are not # garbage collected until the middle of the child thread + self.state = "nostate" import gc; gc.collect() self.mainWin.welcomeText.setText(u"") self.syncThread = ui.sync.Sync(self, u, p, interactive, create,