From 13775124014b0e2bb2807a393c667b57174956e3 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Tue, 29 Jul 2003 21:33:56 +0000 Subject: [PATCH] Bug 213974 too many checkboxes in subscribe window r=varga sr=bienvenu --- mailnews/news/src/nsNntpIncomingServer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mailnews/news/src/nsNntpIncomingServer.cpp b/mailnews/news/src/nsNntpIncomingServer.cpp index bb32a6a60d13..8c7c2a721678 100644 --- a/mailnews/news/src/nsNntpIncomingServer.cpp +++ b/mailnews/news/src/nsNntpIncomingServer.cpp @@ -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; }