fix for crasher bug #51076. the old category code is not ready for prime time, commenting it out.

mozilla 6.0 doesn't support new categories.  r=mscott
This commit is contained in:
sspitzer%netscape.com 2000-09-01 18:56:36 +00:00
Родитель 437df4c969
Коммит 910ec9b98d
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -2489,7 +2489,6 @@ nsNNTPHost::AddNewNewsgroup(const char *name,
PRBool xactiveFlags) {
nsMsgGroupRecord *groupRecord = nsnull;
nsresult rv;
#ifdef DEBUG_NEWS
printf("nsNNTPHost::AddNewNewsgroup(%s,...)\n",name);
@ -2523,10 +2522,15 @@ nsNNTPHost::AddNewNewsgroup(const char *name,
}
if (xactiveFlags)
{
#ifdef CATEGORIES_SUPPORTED
SetIsCategoryContainer(name, bIsCategoryContainer, groupRecord);
#endif /* CATEGORIES_SUPPORTED */
SetIsVirtualGroup(name, bIsVirtual, groupRecord);
}
#ifdef CATEGORIES_SUPPORTED
nsresult rv;
if (status > 0) {
// If this really is a new newsgroup, then if it's a category of a
// subscribed newsgroup, then automatically subscribe to it.
@ -2550,6 +2554,7 @@ nsNNTPHost::AddNewNewsgroup(const char *name,
delete [] containerName;
}
}
#endif /* CATEGORIES_SUPPORTED */
if (status <=0) return NS_ERROR_UNEXPECTED;