aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorJaSK <temp@temp.temp>2014-04-29 19:39:01 +0200
committerJaSK <temp@temp.temp>2014-07-02 15:48:39 +0200
commita5c6c5d6df887764ac07664aae842234c19bbf8d (patch)
tree5971199c88c56c9e8ce7a86e5162e7afce3ce7f4 /src/qt
parentd7d5d23b77e204eccd4bf8a5608c1a499d5fc42f (diff)
fixed tiny glitch and improved readability like laanwj suggested
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/transactiondesc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index 76dc47318d..d94f066ed9 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -101,11 +101,11 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
strHTML += "<b>" + tr("From") + ":</b> " + tr("unknown") + "<br>";
strHTML += "<b>" + tr("To") + ":</b> ";
strHTML += GUIUtil::HtmlEscape(rec->address);
- std::string addressOwned = wallet->IsMine(txout) == MINE_SPENDABLE ? "own address" : "watch-only";
+ QString addressOwned = wallet->IsMine(txout) == MINE_SPENDABLE ? tr("own address") : tr("watch-only");
if (!wallet->mapAddressBook[address].name.empty())
- strHTML += " (" + tr(addressOwned.c_str()) + ", " + tr("label") + ": " + GUIUtil::HtmlEscape(wallet->mapAddressBook[address].name) + ")";
+ strHTML += " (" + addressOwned + ", " + tr("label") + ": " + GUIUtil::HtmlEscape(wallet->mapAddressBook[address].name) + ")";
else
- strHTML += " (" + tr(addressOwned.c_str()) + ")";
+ strHTML += " (" + addressOwned + ")";
strHTML += "<br>";
}
}