X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Ftransactiondesc.cpp;h=72bc4607fd8069e181635d78482756ec208c27aa;hb=db1eaec482383385156b3e7cb6b2baa9454975f0;hp=403362178115bc34c8a0a5fd0177ea87d63c29c8;hpb=77a43545b4491b9703d803765da9059d2bdd5aaa;p=novacoin.git
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index 4033621..72bc460 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -142,9 +142,9 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx)
// Online transaction
std::string strAddress = wtx.mapValue["to"];
strHTML += "" + tr("To") + ": ";
- CTxDestination dest = CBitcoinAddress(strAddress).Get();
- if (wallet->mapAddressBook.count(dest) && !wallet->mapAddressBook[dest].empty())
- strHTML += GUIUtil::HtmlEscape(wallet->mapAddressBook[dest]) + " ";
+ CBitcoinAddress addr(strAddress);
+ if (wallet->mapAddressBook.count(addr) && !wallet->mapAddressBook[addr].empty())
+ strHTML += GUIUtil::HtmlEscape(wallet->mapAddressBook[addr]) + " ";
strHTML += GUIUtil::HtmlEscape(strAddress) + "
";
}