From 3a90109724d124bd0432df7f83385a794e91e91c Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 8 Oct 2009 02:43:54 +0000 Subject: [PATCH] Likewise in trunk --- deluge/ui/gtkui/gtkui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index ec3711a51..767c7049d 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -232,8 +232,9 @@ class GtkUI(object): component.stop() # Process any pending gtk events since the mainloop has been quit - while gtk.events_pending(): - reactor.doIteration(0) + if not deluge.common.windows_check(): + while gtk.events_pending(): + reactor.doIteration(0) # Shutdown all components component.shutdown()