aboutsummaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2010-12-16 11:36:47 -0500
committerGavin Andresen <[email protected]>2010-12-16 11:36:47 -0500
commit55c43da5d8606f7abd22ee7af290cf10bb865f6a (patch)
treea22f32914f658d3dd713995ebc05bb45cee1bbd7 /ui.cpp
parentMerge remote branch 'refs/remotes/svn/trunk' into svn (diff)
parentNew RPC command: listaccounts. New RPC setting -rpctimeout. And listtransac... (diff)
downloaddiscoin-55c43da5d8606f7abd22ee7af290cf10bb865f6a.tar.xz
discoin-55c43da5d8606f7abd22ee7af290cf10bb865f6a.zip
Merge remote branch 'refs/remotes/svn/trunk' into svn
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index 677e6c2a7..1cb922fad 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -746,6 +746,12 @@ bool CMainFrame::InsertTransaction(const CWalletTx& wtx, bool fNew, int nIndex)
strDescription += " - ";
strDescription += mapValue["message"];
}
+ else if (!mapValue["comment"].empty())
+ {
+ if (!strDescription.empty())
+ strDescription += " - ";
+ strDescription += mapValue["comment"];
+ }
int64 nValue = txout.nValue;
if (nTxFee > 0)
@@ -1405,6 +1411,8 @@ CTxDetailsDialog::CTxDetailsDialog(wxWindow* parent, CWalletTx wtx) : CTxDetails
//
if (!wtx.mapValue["message"].empty())
strHTML += string() + "<br><b>" + _("Message:") + "</b><br>" + HtmlEscape(wtx.mapValue["message"], true) + "<br>";
+ if (!wtx.mapValue["comment"].empty())
+ strHTML += string() + "<br><b>" + _("Comment:") + "</b><br>" + HtmlEscape(wtx.mapValue["comment"], true) + "<br>";
if (wtx.IsCoinBase())
strHTML += string() + "<br>" + _("Generated coins must wait 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, it will change to \"not accepted\" and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.") + "<br>";