fixing bug 114956 - Crashed on OK to prefs changing all labels text. r=bienvenu, sr=sspitzer, a=asa

This commit is contained in:
ssu%netscape.com 2001-12-14 02:52:55 +00:00
Родитель 9f89ebc032
Коммит e88f94af05
1 изменённых файлов: 9 добавлений и 3 удалений

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

@ -342,7 +342,9 @@ NS_IMETHODIMP nsMsgDBView::Observe(nsISupports *aSubject, const char *aTopic, co
if(matchFound) {
NS_ENSURE_SUCCESS(rv,rv);
mOutliner->Invalidate();
NS_ASSERTION(mOutliner, "no outliner, see bug #114956");
if(mOutliner)
mOutliner->Invalidate();
}
}
return NS_OK;
@ -1759,14 +1761,18 @@ NS_IMETHODIMP nsMsgDBView::DoCommand(nsMsgViewCommandTypeValue command)
if (!mIsSearchView) //ignore for search view
{
rv = ExpandAll();
mOutliner->Invalidate();
NS_ASSERTION(mOutliner, "no outliner, see bug #114956");
if(mOutliner)
mOutliner->Invalidate();
}
break;
case nsMsgViewCommandType::collapseAll:
if (!mIsSearchView) //ignore for search view
{
rv = CollapseAll();
mOutliner->Invalidate();
NS_ASSERTION(mOutliner, "no outliner, see bug #114956");
if(mOutliner)
mOutliner->Invalidate();
}
break;
default: