minor connectionmanager fixes on adding hsot
This commit is contained in:
parent
4d2c6881f8
commit
01fbda7c9e
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue