Module: deluge
Branch: master
Commit: 848b14605eb3b512cb2af43471535317dd8d1cff

Author: Chase Sterling <[email protected]>
Date:   Sat Dec  8 17:57:12 2012 -0500

Make sure pending gtk events are processed before quitting gtkui.

---

 deluge/ui/gtkui/gtkui.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py
index e48472d..685ed45 100644
--- a/deluge/ui/gtkui/gtkui.py
+++ b/deluge/ui/gtkui/gtkui.py
@@ -246,9 +246,8 @@ class GtkUI(object):
         component.stop()
 
         # Process any pending gtk events since the mainloop has been quit
-        if not deluge.common.windows_check():
-            while gtk.events_pending() and reactor.running:
-                reactor.doIteration(0)
+        while gtk.events_pending():
+            gtk.main_iteration(0)
 
         # Shutdown all components
         component.shutdown()

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to