From 01fbda7c9eb0ad2ba4ecc1cc94f5ef4eac7a2083 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 28 Jan 2009 01:14:29 +0000 Subject: [PATCH] minor connectionmanager fixes on adding hsot --- deluge/ui/gtkui/connectionmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index afdd82175..cb47c7b59 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -184,7 +184,7 @@ class ConnectionManager(component.Component): row = self.liststore.append() import time import hashlib - self.liststore[row][HOSTLIST_COL_ID] = hashlib.sha1(str(time.time()).hexdigest()) + self.liststore[row][HOSTLIST_COL_ID] = hashlib.sha1(str(time.time())).hexdigest() self.liststore[row][HOSTLIST_COL_HOST] = host self.liststore[row][HOSTLIST_COL_PORT] = port self.liststore[row][HOSTLIST_COL_USER] = username @@ -399,7 +399,7 @@ class ConnectionManager(component.Component): # We add the host self.add_host(hostname, port_spinbutton.get_value_as_int(), username, password) - dialog.destroy() + dialog.hide() def on_button_removehost_clicked(self, widget): log.debug("on_button_removehost_clicked")