diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-18 09:03:42 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-18 09:24:02 +0100 |
commit | 61774f82b3a2c5f9fbae9482ca9b7becee241a3d (patch) | |
tree | 21dc9ecace25f1d519ef869514c446dfa5a8fc54 /src | |
parent | 5b6e9811fa64540c8feecc24f11fa867392f262f (diff) | |
parent | 0fde3bbf077aed29bc1367c34d813e9187770cad (diff) |
Merge pull request #3855
0fde3bb [Qt] Fill in label from address book also for URIs (Cozz Lovan)
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/sendcoinsentry.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp index ad8dd7b732..e0f56f8cd2 100644 --- a/src/qt/sendcoinsentry.cpp +++ b/src/qt/sendcoinsentry.cpp @@ -195,8 +195,10 @@ void SendCoinsEntry::setValue(const SendCoinsRecipient &value) ui->messageTextLabel->setVisible(!recipient.message.isEmpty()); ui->messageLabel->setVisible(!recipient.message.isEmpty()); - ui->payTo->setText(recipient.address); - ui->addAsLabel->setText(recipient.label); + ui->addAsLabel->clear(); + ui->payTo->setText(recipient.address); // this may set a label from addressbook + if (!recipient.label.isEmpty()) // if a label had been set from the addressbook, dont overwrite with an empty label + ui->addAsLabel->setText(recipient.label); ui->payAmount->setValue(recipient.amount); } } |