Module: deluge Branch: 1.2-stable Commit: 9e4a92444b47f7a46b8d78cb13ccefb67eadbe01
Author: John Garland <[email protected]> Date: Sun May 2 22:24:34 2010 +1000 Close 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.
