diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp index 3b32137bd41..e8179f8d931 100644 --- a/src/qt/transactiontablemodel.cpp +++ b/src/qt/transactiontablemodel.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -424,8 +425,15 @@ QString TransactionTableModel::formatTxToAddress(const TransactionRecord *wtx, b return lookupAddress(wtx->address, tooltip) + watchAddress; case TransactionRecord::SendToOther: return QString::fromStdString(wtx->address) + watchAddress; - case TransactionRecord::SendToSelf: - return lookupAddress(wtx->address, tooltip) + watchAddress; + case TransactionRecord::SendToSelf: { + std::vector addresses = SplitString(wtx->address, ','); + QString display_string; + for (auto it = addresses.begin(); it != addresses.end(); ++it) { + if (it != addresses.begin()) display_string += ", "; + display_string += lookupAddress(TrimString(*it), tooltip) + watchAddress; + } + return display_string; + } default: return tr("(n/a)") + watchAddress; }