mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 509412 - tab close buttons disappear when closing the first tab. r=dao
This commit is contained in:
parent
f1f0d74e5a
commit
2ab3348ca6
@ -1490,7 +1490,6 @@
|
||||
if (aNewTab && gURLBar)
|
||||
gURLBar.focus();
|
||||
|
||||
this.tabContainer.adjustTabstrip();
|
||||
// workaround for bug 345399
|
||||
this.tabContainer.mTabstrip._updateScrollButtonsDisabledState();
|
||||
}
|
||||
@ -1528,6 +1527,10 @@
|
||||
for (let i = aTab._tPos; i < this.mTabs.length; i++)
|
||||
this.mTabs[i]._tPos = i;
|
||||
|
||||
// update tab close buttons state
|
||||
if (!this._windowIsClosing)
|
||||
this.tabContainer.adjustTabstrip();
|
||||
|
||||
// update first-tab/last-tab/beforeselected/afterselected attributes
|
||||
this.selectedTab._selected = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user