[for joe@retrovirus.com] Bug 324743, r=brettw. Result roots are closed by default.

Original committer: brettw%gmail.com
Original revision: 1.45
Original date: 2006/01/31 03:05:02
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 18:25:06 +00:00
Родитель 81ef54478b
Коммит 9bac551746
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -4119,8 +4119,10 @@ NS_IMETHODIMP nsNavHistoryResult::GetCellText(PRInt32 row,
NS_IMETHODIMP nsNavHistoryResult::SetTree(nsITreeBoxObject* tree)
{
mTree = tree;
if (mTree)
if (mTree) {
mRootNode->SetContainerOpen(PR_TRUE);
SetTreeSortingIndicator();
}
// if there is no tree, BuildVisibleList will clear everything for us
return BuildVisibleList();
}
@ -4746,4 +4748,3 @@ nsNavHistoryResult::OnPageChanged(nsIURI *aURI,
ENUMERATE_HISTORY_OBSERVERS(OnPageChanged(aURI, aWhat, aValue));
return NS_OK;
}