[Qt] Fill in label from address book also for URIs
This commit is contained in:
parent
1725e6a01f
commit
0fde3bbf07
@ -195,8 +195,10 @@ 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->addAsLabel->setText(recipient.label);
|
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);
|
ui->payAmount->setValue(recipient.amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user