From 9bac55174628028e1837344c8a3e33932150d5a2 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 dd4062680ea..3a29df1d41a 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; } -