зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
8a06608dec
Коммит
870b360c08
|
@ -1508,6 +1508,7 @@ nsresult
|
||||||
nsNavHistoryQueryResultNode::OpenContainer()
|
nsNavHistoryQueryResultNode::OpenContainer()
|
||||||
{
|
{
|
||||||
NS_ASSERTION(! mExpanded, "Container must be expanded to close it");
|
NS_ASSERTION(! mExpanded, "Container must be expanded to close it");
|
||||||
|
mExpanded = PR_TRUE;
|
||||||
if (! CanExpand())
|
if (! CanExpand())
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
if (! mContentsValid) {
|
if (! mContentsValid) {
|
||||||
|
@ -1515,7 +1516,6 @@ nsNavHistoryQueryResultNode::OpenContainer()
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
}
|
}
|
||||||
|
|
||||||
mExpanded = PR_TRUE;
|
|
||||||
nsNavHistoryResult* result = GetResult();
|
nsNavHistoryResult* result = GetResult();
|
||||||
NS_ENSURE_TRUE(result, NS_ERROR_FAILURE);
|
NS_ENSURE_TRUE(result, NS_ERROR_FAILURE);
|
||||||
return result->RefreshVisibleSection(this);
|
return result->RefreshVisibleSection(this);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче