diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index c8f46cd3..c7444062 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -941,7 +941,7 @@ var TreeStyleTabService = { isSubtreeCollapsed : function(aTab) /* PUBLIC API */ { - if (!aTab || !this.canCollapseSubtree(aTab)) + if (!aTab || !this.canCollapseSubtree(aTab) || !this.hasChildTabs(aTab)) return false; return aTab.getAttribute(this.kSUBTREE_COLLAPSED) == 'true';