Bug 731553 - warnAboutClosingTabs should ignore tabs that already started closing. r=gavin

This commit is contained in:
Dão Gottwald 2012-03-01 00:35:24 +01:00
parent 267b62cdb3
commit 7d24e5c111

View File

@ -1418,7 +1418,9 @@
<parameter name="aAll"/>
<body>
<![CDATA[
var tabsToClose = (aAll ? this.tabs.length : this.visibleTabs.length - 1)
var tabsToClose = (aAll ?
this.tabs.length - this._removingTabs.length :
this.visibleTabs.length - 1)
- gBrowser._numPinnedTabs;
if (tabsToClose <= 1)
return true;