diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index e07d2821..78c7a781 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1123,7 +1123,10 @@ catch(e) { this.partTab(aTarget); } else if (aInfo.action & this.kACTION_ATTACH) { - this.attachTabTo(aTarget, aInfo.parent); + if (aInfo.parent) + this.attachTabTo(aTarget, aInfo.parent); + else + this.partTab(aTarget); } else { return false;