summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgui.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 82bdda2b6..fa0970d5e 100755
--- a/gui.py
+++ b/gui.py
@@ -58,8 +58,10 @@ class WaitWindow:
self.window.add (frame)
self.window.show_all ()
gdk_flush ()
- while events_pending ():
- mainiteration (FALSE)
+ thread = currentThread ()
+ if thread.getName () == "gtk_main":
+ while events_pending ():
+ mainiteration (FALSE)
threads_leave ()
def pop(self):