Split prefs correctly

This commit is contained in:
YUKI Hiroshi 2014-03-11 11:51:32 +09:00
parent c05c58347b
commit 9a69cb5d1a

View File

@ -5113,9 +5113,11 @@ TreeStyleTabBrowser.prototype = {
this.collapseExpandSubtree(aParent, false, aInfo.dontAnimate);
}
else if (!aInfo.dontExpand) {
if (utils.getTreePref('autoCollapseExpandSubtreeOnAttach')) {
if (this.shouldTabAutoExpanded(aParent))
this.collapseExpandTreesIntelligentlyFor(aParent);
if (utils.getTreePref('autoCollapseExpandSubtreeOnAttach') &&
this.shouldTabAutoExpanded(aParent))
this.collapseExpandTreesIntelligentlyFor(aParent);
if (utils.getTreePref('autoCollapseExpandSubtreeOnSelect')) {
newAncestors.forEach(function(aAncestor) {
if (this.shouldTabAutoExpanded(aAncestor))
this.collapseExpandSubtree(aAncestor, false, aInfo.dontAnimate);