Bug 322290 r=annie.sullivan (on patch accidentally attached to bug 323812).

Make queries act like folders on toolbar and menu.

Original committer: brettw%gmail.com
Original revision: 1.38
Original date: 2006/01/27 21:23:33
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 18:22:11 +00:00
Родитель 8a06608dec
Коммит 870b360c08
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1508,6 +1508,7 @@ nsresult
nsNavHistoryQueryResultNode::OpenContainer()
{
NS_ASSERTION(! mExpanded, "Container must be expanded to close it");
mExpanded = PR_TRUE;
if (! CanExpand())
return NS_OK;
if (! mContentsValid) {
@ -1515,7 +1516,6 @@ nsNavHistoryQueryResultNode::OpenContainer()
NS_ENSURE_SUCCESS(rv, rv);
}
mExpanded = PR_TRUE;
nsNavHistoryResult* result = GetResult();
NS_ENSURE_TRUE(result, NS_ERROR_FAILURE);
return result->RefreshVisibleSection(this);