mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 14:26:24 +00:00
Make sure pending gtk events are processed before quitting gtkui.
This commit is contained in:
parent
2a0048afbb
commit
848b14605e
@ -246,9 +246,8 @@ class GtkUI(object):
|
|||||||
component.stop()
|
component.stop()
|
||||||
|
|
||||||
# Process any pending gtk events since the mainloop has been quit
|
# Process any pending gtk events since the mainloop has been quit
|
||||||
if not deluge.common.windows_check():
|
while gtk.events_pending():
|
||||||
while gtk.events_pending() and reactor.running:
|
gtk.main_iteration(0)
|
||||||
reactor.doIteration(0)
|
|
||||||
|
|
||||||
# Shutdown all components
|
# Shutdown all components
|
||||||
component.shutdown()
|
component.shutdown()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user