toffline interface: fix init - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit a0b86f405d20cf148bc77d8907ddd6d43db8c042 DIR parent 4a36f25d4bd064f75f64e294ffa4776e4c180655 HTML Author: thomasv <thomasv@gitorious> Date: Thu, 1 Aug 2013 11:31:33 +0200 offline interface: fix init Diffstat: M gui/network_dialog.py | 5 ++++- M lib/interface.py | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/network_dialog.py b/gui/network_dialog.py t@@ -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() ), DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -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):