From 42a57b1f41a7588abe7e387a62f945e9285901d9 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 8 Oct 2009 02:42:22 +0000 Subject: [PATCH] Fix quitting in Windows --- 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()