electrum

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

commit a0b86f405d20cf148bc77d8907ddd6d43db8c042
parent 4a36f25d4bd064f75f64e294ffa4776e4c180655
Author: thomasv <thomasv@gitorious>
Date:   Thu,  1 Aug 2013 11:31:33 +0200

offline interface: fix init

Diffstat:
Mgui/network_dialog.py | 5++++-
Mlib/interface.py | 4++++
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gui/network_dialog.py b/gui/network_dialog.py @@ -211,7 +211,10 @@ class NetworkDialog(QDialog): def do_exec(self): - if not self.exec_(): return + if not self.exec_(): + self.config.set_key("server", None, True) + self.config.set_key('auto_cycle', False, True) + return server = ':'.join([str( self.server_host.text() ), str( self.server_port.text() ), diff --git a/lib/interface.py b/lib/interface.py @@ -433,6 +433,10 @@ class Interface(threading.Thread): self.bytes_received = 0 self.is_connected = False + # init with None server, in case we are offline + self.init_server(None, None) + + def init_interface(self):