From 6af1f2e765edb32fcd2807b0273cc928e5723d19 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 18 Dec 2009 02:21:28 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A4=87=E6=95=B0=E3=82=BF=E3=83=96=E3=81=AE?= =?UTF-8?q?=E5=BE=A9=E5=85=83=E3=81=8B=E3=81=A9=E3=81=86=E3=81=8B=E3=81=AE?= =?UTF-8?q?=E5=88=A4=E5=88=A5=E3=82=92=E3=80=81=E3=82=BF=E3=83=96=E3=81=8C?= =?UTF-8?q?=E9=96=8B=E3=81=8B=E3=82=8C=E3=81=9F=E7=9B=B4=E5=BE=8C=E3=81=AE?= =?UTF-8?q?=E3=82=BF=E3=82=A4=E3=83=9F=E3=83=B3=E3=82=B0=E3=81=A7=E3=82=82?= =?UTF-8?q?=E8=A1=8C=E3=81=86=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5543 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 16fe3bb1..c534b4dd 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1438,7 +1438,18 @@ TreeStyleTabBrowser.prototype = { this.setTabValue(tab, this.kINSERT_BEFORE, next.getAttribute(this.kID)); this.setTabValue(next, this.kINSERT_AFTER, tab.getAttribute(this.kID)); } + + if (!TreeStyleTabService.restoringWindow && + !this.useTMPSessionAPI && + !this._checkRestoringWindowTimerOnTabAdded) { + this._checkRestoringWindowTimerOnTabAdded = window.setTimeout(function(aSelf) { + aSelf._checkRestoringWindowTimerOnTabAdded = null; + if (aSelf.getRestoringTabsCount() > 1) + TreeStyleTabService.restoringWindow = true; + }, 0, this); + } }, + _checkRestoringWindowTimerOnTabAdded : null, onTabRemoved : function(aEvent) {