Bug #276632 --> make autocomplete be more like google suggest (make it most popular results come first)

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2005-09-23 21:02:38 +00:00
Родитель 43428371f9
Коммит 28393347fb
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -4156,6 +4156,7 @@ NS_IMETHODIMP nsMsgCompose::CheckAndPopulateRecipients(PRBool populateMailList,
if (NS_SUCCEEDED(existingCard->GetPopularityIndex(&popularityIndex)))
{
existingCard->SetPopularityIndex(++popularityIndex);
abDataBase->EditCard(existingCard, PR_FALSE);
dirtyABDatabase = PR_TRUE;
}
}
@ -4165,8 +4166,7 @@ NS_IMETHODIMP nsMsgCompose::CheckAndPopulateRecipients(PRBool populateMailList,
}
}
if (abDataBase)
abDataBase->Close(dirtyABDatabase); // commit the database changes if we updated the popularity count.
abDataBase->Close(dirtyABDatabase); // commit the database changes if we updated the popularity count.
}
}