Restore ancestor relation of tabs even if it is restored by "undo close tab"

This commit is contained in:
Piro / YUKI Hiroshi 2014-10-02 02:10:10 +09:00
parent 35aab258b8
commit 72ae666e12

View File

@ -3759,7 +3759,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
this.setTabValue(aTab, this.kID, id);
this.tabsHash[id] = aTab;
if (structureRestored) {
if (structureRestored &&
!aTab.__treestyletab__restoredByUndoCloseTab) {
this._fixMissingAttributesFromSessionData(aTab);
}
else {
@ -3771,7 +3772,9 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
dontUpdateIndent : true,
dontAnimate : restoringMultipleTabs
};
let childTabs = this._restoreChildTabsRelation(aTab, children, mayBeDuplicated, options);
let childTabs = structureRestored ?
[] :
this._restoreChildTabsRelation(aTab, children, mayBeDuplicated, options);
this._restoreTabPositionAndIndent(aTab, childTabs, mayBeDuplicated);