mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug52368 Deleted entries in PAB shows up in mailing list. r=ducarroz
This commit is contained in:
parent
b91cab4191
commit
0147f5c683
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user