fix problem that sometimes occured when switching back and forth between daemons without disconnecting first

This commit is contained in:
Marcos Pinto 2008-10-22 08:54:26 +00:00
parent d4bbece86e
commit e09a8f79a8
1 changed files with 1 additions and 0 deletions

View File

@ -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)