work on favorite folders backend, make newsgroups sort to bottom of list sr=mscott 251296

This commit is contained in:
bienvenu%nventure.com 2005-12-27 21:11:43 +00:00
Родитель 8ad07649bf
Коммит e943d4541e
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -251,8 +251,9 @@ nsMsgNewsFolder::AddNewsgroup(const nsACString &name, const char *setStr,
rv = Count(&numExistingGroups);
NS_ENSURE_SUCCESS(rv,rv);
// add 1000 to prevent this problem: 1,10,11,2,3,4,5
rv = folder->SetSortOrder(numExistingGroups + 1000);
// add 9000 to prevent this problem: 1,10,11,2,3,4,5
// We use 9000 instead of 1000 so newsgroups will sort to bottom of flat folder views
rv = folder->SetSortOrder(numExistingGroups + 9000);
NS_ENSURE_SUCCESS(rv,rv);
//convert to an nsISupports before appending