From 67b39e67d4b1d115f38f07a08dde01485d3d578b Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Wed, 11 Feb 2015 21:40:58 +0200 Subject: [PATCH] fixed incorrect code order, handle @ chars correctly --- plugins/openalias.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/openalias.py b/plugins/openalias.py index feb58c24..669b0544 100644 --- a/plugins/openalias.py +++ b/plugins/openalias.py @@ -104,11 +104,13 @@ class Plugin(BasePlugin): return if self.win.payto_e.is_multiline(): # only supports single line entries atm return + url = str(self.win.payto_e.toPlainText()) + url = url.replace('@', '.') # support email-style addresses, per the OA standard + if url == self.win.previous_payto_e: return self.win.previous_payto_e = url - url = url.replace('@', '.') # support email-style addresses, per the OA standard if ('.' in url) and (not '<' in url) and (not ' ' in url): if not OA_READY: # handle a failed DNSPython load