tfix undefined variable in openalias plugin - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit bafc9a584225c9e18a67aa1ddd1f14673855c383 DIR parent da502076bd4600c712fd5f8a0ba7533619b4a72c HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 31 Mar 2015 09:35:11 +0200 fix undefined variable in openalias plugin Diffstat: M plugins/openalias.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- DIR diff --git a/plugins/openalias.py b/plugins/openalias.py t@@ -106,11 +106,14 @@ class Plugin(BasePlugin): self.win.previous_payto_e = url return True - (address, name) = data + address, name = data new_url = url + ' <' + address + '>' self.win.payto_e.setText(new_url) self.win.previous_payto_e = new_url + if self.config.get('openalias_autoadd') == 'checked': + self.win.wallet.add_contact(address, name) + @hook def before_send(self): ''' t@@ -143,8 +146,6 @@ class Plugin(BasePlugin): if reply != QMessageBox.Ok: return True - if self.config.get('openalias_autoadd') == 'checked': - self.win.wallet.add_contact(address, name) return False def settings_dialog(self):