Only fill in label from address book, if no label is filled in yet, fixes #840

This commit is contained in:
Wladimir J. van der Laan
2012-02-27 12:45:25 -05:00
committed by Luke Dashjr
parent 33e0c3a866
commit b085138f89
+3 -2
View File
@@ -59,8 +59,9 @@ void SendCoinsEntry::on_payTo_textChanged(const QString &address)
{
if(!model)
return;
ui->addAsLabel->setText(model->getAddressTableModel()->labelForAddress(address));
}
// Fill in label from address book, if no label is filled in yet
if(ui->addAsLabel->text().isEmpty())
ui->addAsLabel->setText(model->getAddressTableModel()->labelForAddress(address));}
void SendCoinsEntry::setModel(WalletModel *model)
{