This commit is contained in:
thomasv 2012-02-03 16:08:28 +01:00
parent ea96658a73
commit 0b1e56f51a
1 changed files with 2 additions and 1 deletions

View File

@ -590,10 +590,11 @@ class BitcoinGUI:
r = self.payto_entry.get_text()
if r != old_r:
old_r = r
r = r.strip()
if re.match('^(|([\w\-\.]+)@)((\w[\w\-]+\.)+[\w\-]+)$', r):
to_address = self.wallet.get_alias(r)
if to_address:
s = r+ ' <'+to_address+'>'
s = r + ' <' + to_address + '>'
gobject.idle_add( lambda: self.payto_entry.set_text(s) )