From 501836ae947f0b565d83d02ca5e07d229511c890 Mon Sep 17 00:00:00 2001 From: "dietrich@mozilla.com" Date: Wed, 30 Apr 2008 21:57:47 -0700 Subject: [PATCH] Bug 430659 - Saved search in sidebar does not work. (r=mano, a=damon) --- browser/components/places/content/treeView.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/components/places/content/treeView.js b/browser/components/places/content/treeView.js index 7647d9d9966..2ffbc2a3329 100644 --- a/browser/components/places/content/treeView.js +++ b/browser/components/places/content/treeView.js @@ -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; }