Browse Source

Add addresses that we've sent to to the address book

0.8
Wladimir J. van der Laan 14 years ago
parent
commit
c51f051257
  1. 5
      gui/src/clientmodel.cpp

5
gui/src/clientmodel.cpp

@ -106,6 +106,11 @@ ClientModel::StatusCode ClientModel::sendCoins(const QString &payTo, qint64 payA @@ -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;
}

Loading…
Cancel
Save