tnew session if host changed - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit eaec64c3ef26c1c854fc4be808f2681365c2985d
DIR parent 13265c922d6f9b970bd11181510ac40bbfe690de
HTML Author: ThomasV <thomasv@gitorious>
Date: Sun, 4 Dec 2011 12:49:47 +0100
new session if host changed
Diffstat:
M client/gui.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
DIR diff --git a/client/gui.py b/client/gui.py
t@@ -1024,9 +1024,12 @@ class BitcoinGUI:
show_message("error")
return
- wallet.host = host
- wallet.port = port
- wallet.save()
+ if host!= wallet.host or port!=wallet.port:
+ wallet.host = host
+ wallet.port = port
+ wallet.save()
+ self.is_connected = False
+ wallet.new_session()
def main(self):