git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
368fa79
)
add recipient to addressbook
author
ThomasV
<thomasv@gitorious>
Sat, 5 Nov 2011 07:32:58 +0000 (08:32 +0100)
committer
ThomasV
<thomasv@gitorious>
Sat, 5 Nov 2011 07:32:58 +0000 (08:32 +0100)
client/electrum
patch
|
blob
|
history
client/gui.py
patch
|
blob
|
history
diff --git
a/client/electrum
b/client/electrum
index
c7e7e29
..
6f86cf7
100755
(executable)
--- a/
client/electrum
+++ b/
client/electrum
@@
-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
diff --git
a/client/gui.py
b/client/gui.py
index
4cf01e3
..
b3dae9d
100644
(file)
--- a/
client/gui.py
+++ b/
client/gui.py
@@
-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 )