Bug 213974 too many checkboxes in subscribe window r=varga sr=bienvenu

This commit is contained in:
neil%parkwaycc.co.uk 2003-07-29 21:33:56 +00:00
Родитель 5c0f1568d8
Коммит 1377512401
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -1708,17 +1708,17 @@ nsNntpIncomingServer::SetSearchValue(const char *searchValue)
// so that we can do case insensitive searching
ToLowerCase(mSearchValue);
PRInt32 oldCount = mSubscribeSearchResult.Count();
if (mTree) {
mTree->BeginUpdateBatch();
mTree->RowCountChanged(0, -mSubscribeSearchResult.Count());
}
mSubscribeSearchResult.Clear();
mGroupsOnServer.EnumerateForwards((nsCStringArrayEnumFunc)buildSubscribeSearchResult, (void *)this);
PRInt32 newCount = mSubscribeSearchResult.Count();
if (mTree) {
mTree->RowCountChanged(0, oldCount - newCount);
mTree->Invalidate();
mTree->InvalidateScrollbar();
mTree->RowCountChanged(0, mSubscribeSearchResult.Count());
mTree->EndUpdateBatch();
}
return NS_OK;
}