electrum

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

commit ba2570b8aa62a3b2591cdd663c3a9e8df5397c3c
parent 0e2db1e0caa774bdb5ebf811ecab7b0d700fda9c
Author: ThomasV <thomasv@gitorious>
Date:   Tue,  1 Sep 2015 10:25:20 +0200

check that GUI has new_window method

Diffstat:
Melectrum | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/electrum b/electrum @@ -296,10 +296,13 @@ class ClientThread(util.DaemonThread): cmd = config.get('cmd') if cmd == 'gui': if self.server.gui: - self.server.gui.new_window(config) - response = "ok" + if hasattr(server.gui, 'new_window'): + self.server.gui.new_window(config) + response = "ok" + else: + response = "error: current GUI does not support multiple windows" else: - response = "Error: Electrum daemon is running" + response = "error: Electrum daemon is running" elif cmd == 'daemon': sub = config.get('subcommand') assert sub in ['start', 'stop', 'status']