add label to sender address
authorfsb4000 <fsb4000@yandex.ru>
Tue, 2 Dec 2014 14:19:00 +0000 (14:19 +0000)
committerfsb4000 <fsb4000@yandex.ru>
Tue, 2 Dec 2014 14:19:00 +0000 (14:19 +0000)
src/qt/transactiondesc.cpp

index 543a40c..f82acfa 100644 (file)
@@ -105,6 +105,11 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx)
                                     {
                                         strHTML += "<b>" + tr("From") + ":</b> ";
                                         strHTML += GUIUtil::HtmlEscape(CBitcoinAddress(senderAddress).ToString());
+                                        if(wallet->mapAddressBook.find(senderAddress) !=  wallet->mapAddressBook.end())
+                                            if (!wallet->mapAddressBook[senderAddress].empty())
+                                            {
+                                                strHTML += " (" + tr("label") + ": " + GUIUtil::HtmlEscape(wallet->mapAddressBook[senderAddress]) + ")";
+                                            }
                                         strHTML += "<br>";
                                     }
                                 }