зеркало из https://github.com/mozilla/gecko-dev.git
Bug #276632 --> make autocomplete be more like google suggest (make it most popular results come first)
sr=bienvenu
This commit is contained in:
Родитель
43428371f9
Коммит
28393347fb
|
@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче