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-17 18:25:14 +01:00
parent a3f3e54eee
commit f9f75f320e
1 changed files with 3 additions and 2 deletions

View File

@ -59,8 +59,9 @@ void SendCoinsEntry::on_payTo_textChanged(const QString &address)
{ {
if(!model) if(!model)
return; 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) void SendCoinsEntry::setModel(WalletModel *model)
{ {