electrum

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

commit ee067a47ddc1a5676da9ba456ac9c32841be13f0
parent 31b6a4b4d01803ebb60a2afcccffc126ac2cd85f
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 23 Jan 2015 16:57:49 +0100

cosign plugin: fix listener

Diffstat:
Mplugins/cosigner_pool.py | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/plugins/cosigner_pool.py b/plugins/cosigner_pool.py @@ -93,14 +93,9 @@ class Plugin(BasePlugin): def init_qt(self, gui): self.win = gui.main_window self.win.connect(self.win, SIGNAL('cosigner:receive'), self.on_receive) - if self.listener is None: - self.listener = Listener(self) - self.listener.start() def enable(self): self.set_enabled(True) - if self.win.wallet: - self.load_wallet(self.win.wallet) return True def is_available(self): @@ -110,6 +105,9 @@ class Plugin(BasePlugin): @hook def load_wallet(self, wallet): + if self.listener is None: + self.listener = Listener(self) + self.listener.start() self.wallet = wallet if not self.is_available(): return