Bug 431817 - Special folders (Tags, Recent Tags) are not expandable/collapsible (no-more containers) (for mak77@supereva.it, r=dietrich, a=beltzner)
git-svn-id: svn://10.0.0.236/trunk@251210 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3cacb7c45e
commit
66d9852482
@ -939,11 +939,12 @@ PlacesTreeView.prototype = {
|
||||
if (!node.parent)
|
||||
return true;
|
||||
|
||||
// treat non-expandable queries as non-containers
|
||||
// treat non-expandable childless queries as non-containers
|
||||
if (PlacesUtils.nodeIsQuery(node)) {
|
||||
var parent = node.parent;
|
||||
if(PlacesUtils.nodeIsQuery(parent) ||
|
||||
PlacesUtils.nodeIsFolder(parent))
|
||||
if((PlacesUtils.nodeIsQuery(parent) ||
|
||||
PlacesUtils.nodeIsFolder(parent)) &&
|
||||
!node.hasChildren)
|
||||
return asQuery(parent).queryOptions.expandQueries;
|
||||
}
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user