Bug52368 Deleted entries in PAB shows up in mailing list. r=ducarroz

This commit is contained in:
chuang%netscape.com 2000-09-15 06:50:06 +00:00
parent b91cab4191
commit 0147f5c683

View File

@ -449,7 +449,7 @@ nsresult nsAbDirectory::RemoveCardFromAddressList(const nsIAbCard* card)
rv = pAddressLists->Count(&total);
for (j = total - 1; j >= 0; j--)
{
nsCOMPtr<nsISupports> pSupport = getter_AddRefs(pAddressLists->ElementAt(i));
nsCOMPtr<nsISupports> pSupport = getter_AddRefs(pAddressLists->ElementAt(j));
nsCOMPtr<nsIAbCard> cardInList(do_QueryInterface(pSupport, &rv));
if (card == cardInList.get())
pAddressLists->RemoveElementAt(j);