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.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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user