We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1725e6a commit 0fde3bbCopy full SHA for 0fde3bb
src/qt/sendcoinsentry.cpp
@@ -195,8 +195,10 @@ void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
195
ui->messageTextLabel->setVisible(!recipient.message.isEmpty());
196
ui->messageLabel->setVisible(!recipient.message.isEmpty());
197
198
- ui->payTo->setText(recipient.address);
199
- ui->addAsLabel->setText(recipient.label);
+ ui->addAsLabel->clear();
+ ui->payTo->setText(recipient.address); // this may set a label from addressbook
200
+ if (!recipient.label.isEmpty()) // if a label had been set from the addressbook, dont overwrite with an empty label
201
+ ui->addAsLabel->setText(recipient.label);
202
ui->payAmount->setValue(recipient.amount);
203
}
204
0 commit comments