mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-05 19:54:28 +00:00
Set label when selecting an address that already has a label. Fixes #1080.
This commit is contained in:
parent
6b8e7eefcc
commit
2d67195ed2
@ -59,9 +59,11 @@ void SendCoinsEntry::on_payTo_textChanged(const QString &address)
|
|||||||
{
|
{
|
||||||
if(!model)
|
if(!model)
|
||||||
return;
|
return;
|
||||||
// Fill in label from address book, if no label is filled in yet
|
// Fill in label from address book, if address has an associated label
|
||||||
if(ui->addAsLabel->text().isEmpty())
|
QString associatedLabel = model->getAddressTableModel()->labelForAddress(address);
|
||||||
ui->addAsLabel->setText(model->getAddressTableModel()->labelForAddress(address));}
|
if(!associatedLabel.isEmpty())
|
||||||
|
ui->addAsLabel->setText(associatedLabel);
|
||||||
|
}
|
||||||
|
|
||||||
void SendCoinsEntry::setModel(WalletModel *model)
|
void SendCoinsEntry::setModel(WalletModel *model)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user