Browse Source

fix undefined variable in openalias plugin

283
ThomasV 10 years ago
parent
commit
bafc9a5842
  1. 7
      plugins/openalias.py

7
plugins/openalias.py

@ -106,11 +106,14 @@ class Plugin(BasePlugin):
self.win.previous_payto_e = url self.win.previous_payto_e = url
return True return True
(address, name) = data address, name = data
new_url = url + ' <' + address + '>' new_url = url + ' <' + address + '>'
self.win.payto_e.setText(new_url) self.win.payto_e.setText(new_url)
self.win.previous_payto_e = new_url self.win.previous_payto_e = new_url
if self.config.get('openalias_autoadd') == 'checked':
self.win.wallet.add_contact(address, name)
@hook @hook
def before_send(self): def before_send(self):
''' '''
@ -143,8 +146,6 @@ class Plugin(BasePlugin):
if reply != QMessageBox.Ok: if reply != QMessageBox.Ok:
return True return True
if self.config.get('openalias_autoadd') == 'checked':
self.win.wallet.add_contact(address, name)
return False return False
def settings_dialog(self): def settings_dialog(self):

Loading…
Cancel
Save