MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / updateLabel

Method updateLabel

src/qt/sendcoinsentry.cpp:226–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226bool SendCoinsEntry::updateLabel(const QString &address)
227{
228 if(!model)
229 return false;
230
231 // Fill in label from address book, if address has an associated label
232 QString associatedLabel = model->getAddressTableModel()->labelForAddress(address);
233 if(!associatedLabel.isEmpty())
234 {
235 ui->addAsLabel->setText(associatedLabel);
236 return true;
237 }
238
239 return false;
240}

Callers

nothing calls this directly

Calls 3

labelForAddressMethod · 0.80
getAddressTableModelMethod · 0.80
setTextMethod · 0.80

Tested by

no test coverage detected