From ce191efc5404a463f7e07331c01ddeb712541225 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 22 Oct 2008 08:54:26 +0000 Subject: [PATCH] fix problem that sometimes occured when switching back and forth between daemons without disconnecting first --- deluge/ui/gtkui/connectionmanager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 0ad480375..b09ede304 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -448,6 +448,7 @@ class ConnectionManager(component.Component): def on_button_connect_clicked(self, widget): log.debug("on_button_connect_clicked") + component.stop() paths = self.hostlist.get_selection().get_selected_rows()[1] row = self.liststore.get_iter(paths[0]) status = self.liststore.get_value(row, HOSTLIST_COL_STATUS)