Bug #336412 --> first names or surnames disappear after sending a message. r=mark banner

This commit is contained in:
scott%scott-macgregor.org 2007-01-04 05:40:34 +00:00
Родитель 53724f11e8
Коммит 8daa9cbc02
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -167,8 +167,12 @@ NS_IMETHODIMP nsAbAddressCollecter::CollectAddress(const char *aAddress, PRBool
else if (existingCard && !emailAddressIn2ndEmailColumn) {
// address is already in the AB, so update the names
PRBool setNames = PR_FALSE;
rv = SetNamesForCard(existingCard, unquotedName.get(), &setNames);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to set names");
if (!unquotedName.IsEmpty())
{
rv = SetNamesForCard(existingCard, unquotedName.get(), &setNames);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to set names");
}
PRBool setScreenName = PR_FALSE;
rv = AutoCollectScreenName(existingCard, curAddress, &setScreenName);