From 4ef252e7307afa5c5e2c498081ffc7434ae01d4e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 4 Dec 2011 14:09:35 +0100 Subject: [PATCH] change host on select --- client/gui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/gui.py b/client/gui.py index bc6e16c1e..02d879677 100644 --- a/client/gui.py +++ b/client/gui.py @@ -1001,10 +1001,11 @@ class BitcoinGUI: vbox.pack_start(host, False,False, 5) vbox.pack_start(scroll) - def my_treeview_cb(treeview, path, view_column): + def my_treeview_cb(treeview): + path, view_column = treeview.get_cursor() host = server_list.get_value( server_list.get_iter(path), 0) host_entry.set_text(host+":50000") - treeview.connect('row-activated', my_treeview_cb) + treeview.connect('cursor-changed', my_treeview_cb) dialog.show() r = dialog.run()