From bdb06a8c407fb2ba366dd863d973cf1d14d752f2 Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 18 Jul 2006 18:25:06 +0000 Subject: [PATCH] [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 --- toolkit/components/places/src/nsNavHistoryResult.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toolkit/components/places/src/nsNavHistoryResult.cpp b/toolkit/components/places/src/nsNavHistoryResult.cpp index dd4062680ea1..3a29df1d41a4 100644 --- a/toolkit/components/places/src/nsNavHistoryResult.cpp +++ b/toolkit/components/places/src/nsNavHistoryResult.cpp @@ -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; } -