From e09a8f79a8c02c111866b23c89cfbc479e49c0f9 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 84add4db3..3e02071b6 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)