tcheck that GUI has new_window method - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ba2570b8aa62a3b2591cdd663c3a9e8df5397c3c DIR parent 0e2db1e0caa774bdb5ebf811ecab7b0d700fda9c HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 1 Sep 2015 10:25:20 +0200 check that GUI has new_window method Diffstat: M electrum | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -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']