Module: deluge Branch: master Commit: 23544bd6b20a1b0d24559246e06e7cdbee32d01b
Author: John Garland <[email protected]> Date: Sun May 2 22:19:07 2010 +1000 Close the connection manager on shutdown - patch from Jan Steffens --- deluge/ui/gtkui/connectionmanager.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 554c570..3b9ddf4 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -99,12 +99,16 @@ class ConnectionManager(component.Component): self.config = ConfigManager("hostlist.conf.1.2", DEFAULT_CONFIG) + self.running = False + # Component overrides def start(self): pass def stop(self): - pass + # Close this dialog when we are shutting down + if self.running: + self.connection_manager.response(gtk.RESPONSE_CLOSE) def shutdown(self): pass -- 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.
