Bug 430659 - Saved search in sidebar does not work. (r=mano, a=damon)

This commit is contained in:
dietrich@mozilla.com 2008-04-30 21:57:47 -07:00
parent f67bfe83b4
commit 50ac4fdfa8

View File

@ -943,8 +943,10 @@ PlacesTreeView.prototype = {
// treat non-expandable queries as non-containers
if (PlacesUtils.nodeIsQuery(node)) {
asQuery(node);
return node.queryOptions.expandQueries;
var parent = node.parent;
if(PlacesUtils.nodeIsQuery(parent) ||
PlacesUtils.nodeIsFolder(parent))
return asQuery(parent).queryOptions.expandQueries;
}
return true;
}