MCPcopy Create free account
hub / github.com/ElementsProject/elements / updateLabel

Method updateLabel

src/qt/sendcoinsentry.cpp:280–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280bool SendCoinsEntry::updateLabel(const QString &address)
281{
282 if(!model)
283 return false;
284
285 // Fill in label from address book, if address has an associated label
286 QString associatedLabel = model->getAddressTableModel()->labelForAddress(address);
287 if(!associatedLabel.isEmpty())
288 {
289 ui->addAsLabel->setText(associatedLabel);
290 return true;
291 }
292
293 return false;
294}

Callers

nothing calls this directly

Calls 3

labelForAddressMethod · 0.80
getAddressTableModelMethod · 0.80
setTextMethod · 0.80

Tested by

no test coverage detected