whoops, I want the uri here (kPersonalAddressbookUri) not the file name (kPersonalAddressbook). thanks to david for debugging. r/sr=bienvenu

This commit is contained in:
sspitzer%netscape.com 2002-09-12 20:13:38 +00:00
Родитель 8d6e340f07
Коммит 24042bce48
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -258,7 +258,7 @@ nsAbAddressCollecter::collectAddressBookPrefChanged(const char *aNewpref, void *
nsXPIDLCString prefVal;
rv = pPref->GetCharPref(PREF_MAIL_COLLECT_ADDRESSBOOK, getter_Copies(prefVal));
rv = adCol->SetAbURI((NS_FAILED(rv) || prefVal.IsEmpty()) ? kPersonalAddressbook : prefVal.get());
rv = adCol->SetAbURI((NS_FAILED(rv) || prefVal.IsEmpty()) ? kPersonalAddressbookUri : prefVal.get());
NS_ASSERTION(NS_SUCCEEDED(rv),"failed to change collected ab");
return 0;
}
@ -274,7 +274,7 @@ nsresult nsAbAddressCollecter::Init(void)
nsXPIDLCString prefVal;
rv = pPref->GetCharPref(PREF_MAIL_COLLECT_ADDRESSBOOK, getter_Copies(prefVal));
rv = SetAbURI((NS_FAILED(rv) || prefVal.IsEmpty()) ? kPersonalAddressbook : prefVal.get());
rv = SetAbURI((NS_FAILED(rv) || prefVal.IsEmpty()) ? kPersonalAddressbookUri : prefVal.get());
NS_ENSURE_SUCCESS(rv,rv);
return NS_OK;
}