Restore ancestor relation of tabs even if it is restored by "undo close tab"
This commit is contained in:
parent
35aab258b8
commit
72ae666e12
@ -3759,7 +3759,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
this.setTabValue(aTab, this.kID, id);
|
this.setTabValue(aTab, this.kID, id);
|
||||||
this.tabsHash[id] = aTab;
|
this.tabsHash[id] = aTab;
|
||||||
|
|
||||||
if (structureRestored) {
|
if (structureRestored &&
|
||||||
|
!aTab.__treestyletab__restoredByUndoCloseTab) {
|
||||||
this._fixMissingAttributesFromSessionData(aTab);
|
this._fixMissingAttributesFromSessionData(aTab);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -3771,7 +3772,9 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
dontUpdateIndent : true,
|
dontUpdateIndent : true,
|
||||||
dontAnimate : restoringMultipleTabs
|
dontAnimate : restoringMultipleTabs
|
||||||
};
|
};
|
||||||
let childTabs = this._restoreChildTabsRelation(aTab, children, mayBeDuplicated, options);
|
let childTabs = structureRestored ?
|
||||||
|
[] :
|
||||||
|
this._restoreChildTabsRelation(aTab, children, mayBeDuplicated, options);
|
||||||
|
|
||||||
this._restoreTabPositionAndIndent(aTab, childTabs, mayBeDuplicated);
|
this._restoreTabPositionAndIndent(aTab, childTabs, mayBeDuplicated);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user