git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
a3f3e54
)
Only fill in label from address book, if no label is filled in yet, fixes #840
author
Wladimir J. van der Laan
<laanwj@gmail.com>
Fri, 17 Feb 2012 17:25:14 +0000 (18:25 +0100)
committer
Wladimir J. van der Laan
<laanwj@gmail.com>
Fri, 17 Feb 2012 17:25:14 +0000 (18:25 +0100)
src/qt/sendcoinsentry.cpp
patch
|
blob
|
history
diff --git
a/src/qt/sendcoinsentry.cpp
b/src/qt/sendcoinsentry.cpp
index
ab5460f
..
d98400c
100644
(file)
--- a/
src/qt/sendcoinsentry.cpp
+++ b/
src/qt/sendcoinsentry.cpp
@@
-59,8
+59,9
@@
void SendCoinsEntry::on_payTo_textChanged(const QString &address)
{
if(!model)
return;
- ui->addAsLabel->setText(model->getAddressTableModel()->labelForAddress(address));
-}
+ // Fill in label from address book, if no label is filled in yet
+ if(ui->addAsLabel->text().isEmpty())
+ ui->addAsLabel->setText(model->getAddressTableModel()->labelForAddress(address));}
void SendCoinsEntry::setModel(WalletModel *model)
{