diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index d8bf4667..2f7a691c 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -501,10 +501,12 @@ var TreeStyleTabWindowHelper = { b.__treestyletab__loadTabs = b.loadTabs; b.loadTabs = function(aURIs, aLoadInBackground, aReplace, ...aArgs) { + if (!TreeStyleTabWindowHelper.runningDelayedStartup) { // don't open home tabs as a tree! if (aReplace) this.treeStyleTab.readyToOpenChildTab(this.selectedTab, true); else if (typeof this.treeStyleTab.nextOpenedTabToBeParent == 'undefined') this.treeStyleTab.nextOpenedTabToBeParent = true; + } var result; var tabs = []; diff --git a/modules/browser.js b/modules/browser.js index 2881e39a..e148a998 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -106,6 +106,8 @@ function TreeStyleTabBrowser(aWindowService, aTabBrowser) this.subTreeMovingCount = 0; this.subTreeChildrenMovingCount = 0; this._treeViewEnabled = true; + + this.nextOpenedTabToBeParent = false; } TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {