Changeset View
Changeset View
Standalone View
Standalone View
src/qt/coincontroldialog.cpp
Show First 20 Lines • Show All 740 Lines • ▼ Show 20 Lines | for (const std::pair<QString, std::vector<COutput>> &coins : mapCoins) { | ||||
QString sAddress = ""; | QString sAddress = ""; | ||||
if (ExtractDestination(out.tx->tx->vout[out.i].scriptPubKey, | if (ExtractDestination(out.tx->tx->vout[out.i].scriptPubKey, | ||||
outputAddress)) { | outputAddress)) { | ||||
sAddress = | sAddress = | ||||
QString::fromStdString(EncodeDestination(outputAddress)); | QString::fromStdString(EncodeDestination(outputAddress)); | ||||
// if listMode or change => show bitcoin address. In tree mode, | // if listMode or change => show bitcoin address. In tree mode, | ||||
// address is not shown again for direct wallet address outputs | // address is not shown again for direct wallet address outputs | ||||
if (!treeMode || (!(sAddress == sWalletAddress))) { | if (!treeMode || (!(sAddress == sWalletAddress))) | ||||
itemOutput->setText(COLUMN_ADDRESS, sAddress); | itemOutput->setText(COLUMN_ADDRESS, sAddress); | ||||
} | } | ||||
} | |||||
// label | // label | ||||
if (!(sAddress == sWalletAddress)) { | if (!(sAddress == sWalletAddress)) { | ||||
// change tooltip from where the change comes from | // change tooltip from where the change comes from | ||||
itemOutput->setToolTip(COLUMN_LABEL, tr("change from %1 (%2)") | itemOutput->setToolTip(COLUMN_LABEL, tr("change from %1 (%2)") | ||||
.arg(sWalletLabel) | .arg(sWalletLabel) | ||||
.arg(sWalletAddress)); | .arg(sWalletAddress)); | ||||
itemOutput->setText(COLUMN_LABEL, tr("(change)")); | itemOutput->setText(COLUMN_LABEL, tr("(change)")); | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |