diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-01 15:33:51 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-01 17:15:43 +0200 |
commit | c51f051257e678b3fd26efdd84a89329420c96f5 (patch) | |
tree | 2010340119c84e0d3a183e973383a148820991ea /gui | |
parent | 5d5990dc8f3d0b8e128a8d4cd30c1390c5767c88 (diff) |
Add addresses that we've sent to to the address book
Diffstat (limited to 'gui')
-rw-r--r-- | gui/src/clientmodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/src/clientmodel.cpp b/gui/src/clientmodel.cpp index 641c515ef9..97b5f44fe7 100644 --- a/gui/src/clientmodel.cpp +++ b/gui/src/clientmodel.cpp @@ -106,6 +106,11 @@ ClientModel::StatusCode ClientModel::sendCoins(const QString &payTo, qint64 payA return MiscError; } } + // Add addresses that we've sent to to the address book + std::string strAddress = payTo.toStdString(); + CRITICAL_BLOCK(cs_mapAddressBook) + if (!mapAddressBook.count(strAddress)) + SetAddressBookName(strAddress, ""); return OK; } |