URI: 
       tadd recipient to addressbook - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 89d6971b8c1ec474f58b08a642e2855be48f120b
   DIR parent 368fa7980f74db07e22eb32edf292abeb98b8d82
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Sat,  5 Nov 2011 08:32:58 +0100
       
       add recipient to addressbook
       
       Diffstat:
         M client/electrum                     |       5 ++++-
         M client/gui.py                       |       1 +
       
       2 files changed, 5 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/client/electrum b/client/electrum
       t@@ -561,7 +561,10 @@ class Wallet:
                out = self.send_tx(tx)
                if out != tx_hash:
                    return False, "error: hash mismatch"
       -        wallet.labels[tx_hash] = label
       +        if to_address not in self.addressbook:
       +            self.addressbook.append(to_address)
       +        if label: 
       +            wallet.labels[tx_hash] = label
                wallet.save()
                return True, tx_hash
        
   DIR diff --git a/client/gui.py b/client/gui.py
       t@@ -462,6 +462,7 @@ class BitcoinGUI:
                    payto_entry.set_text("")
                    label_entry.set_text("")
                    amount_entry.set_text("")
       +            self.update_sending_tab()
                else:
                    show_message( msg )