mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Merge pull request #3855
0fde3bb
[Qt] Fill in label from address book also for URIs (Cozz Lovan)
This commit is contained in:
commit
61774f82b3
1 changed files with 4 additions and 2 deletions
|
@ -195,7 +195,9 @@ void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
|
||||||
ui->messageTextLabel->setVisible(!recipient.message.isEmpty());
|
ui->messageTextLabel->setVisible(!recipient.message.isEmpty());
|
||||||
ui->messageLabel->setVisible(!recipient.message.isEmpty());
|
ui->messageLabel->setVisible(!recipient.message.isEmpty());
|
||||||
|
|
||||||
ui->payTo->setText(recipient.address);
|
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->addAsLabel->setText(recipient.label);
|
||||||
ui->payAmount->setValue(recipient.amount);
|
ui->payAmount->setValue(recipient.amount);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue