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

Method updateLabel

src/qt/sendcoinsentry.cpp:265–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool SendCoinsEntry::updateLabel(const QString &address)
266{
267 if(!model)
268 return false;
269
270 // Fill in label from address book, if address has an associated label
271 QString associatedLabel = model->getAddressTableModel()->labelForAddress(address);
272 if(!associatedLabel.isEmpty())
273 {
274 ui->addAsLabel->setText(associatedLabel);
275 return true;
276 }
277
278 return false;
279}

Callers

nothing calls this directly

Calls 2

labelForAddressMethod · 0.80
getAddressTableModelMethod · 0.45

Tested by

no test coverage detected