electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit f4abbd7981c2309525a0cb6a0ce9cd620f141cd9
parent c130ff6715738436d7db8506379d2471c313f499
Author: ThomasV <thomasv@gitorious>
Date:   Wed, 27 Aug 2014 13:48:10 +0200

fix gtk gui, network dialog

Diffstat:
Mgui/gtk.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gui/gtk.py b/gui/gtk.py @@ -221,9 +221,10 @@ def run_network_dialog( network, parent ): image = Gtk.Image() image.set_from_stock(Gtk.STOCK_NETWORK, Gtk.IconSize.DIALOG) host, port, protocol, proxy_config, auto_connect = network.get_parameters() + server = "%s:%s:%s"%(host, port, protocol) if parent: if network.is_connected(): - status = "Connected to %s:%d\n%d blocks"%(host, port, network.blockchain.height()) + status = "Connected to %s\n%d blocks"%(host, network.get_local_height()) else: status = "Not connected" else: @@ -340,13 +341,12 @@ def run_network_dialog( network, parent ): try: host, port, protocol = server.split(':') - proxy = network.config.get('proxy') - auto_connect = network.config.get('auto_cycle') - network.set_parameters(host, port, protocol, proxy, auto_connect) except Exception: show_message("error:" + server) return False + network.set_parameters(host, port, protocol, proxy_config, auto_connect) +