aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-02-17 18:25:14 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2012-02-17 18:25:14 +0100
commitf9f75f320eedbc33f80f3978703db72dca76a94b (patch)
tree346f5b9912fc889148247e761f8ac249029da3a9
parenta3f3e54eee7f9d354d2f48394ddc2130450968a7 (diff)
Only fill in label from address book, if no label is filled in yet, fixes #840
-rw-r--r--src/qt/sendcoinsentry.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp
index ab5460f8c2..d98400c260 100644
--- 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)
{