From cd0b4b359448cb96650640dc332894fd1aff2a03 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 7 Apr 2010 13:48:25 +0000 Subject: [PATCH] =?UTF-8?q?Minefield=203.7a4pre=E3=81=AB=E3=81=8A=E3=81=84?= =?UTF-8?q?=E3=81=A6=E3=80=81=E4=B8=80=E5=BA=A6=E3=82=82=E5=B1=95=E9=96=8B?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E3=83=96=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=83=9E=E3=83=BC=E3=82=AF=E3=83=95=E3=82=A9=E3=83=AB?= =?UTF-8?q?=E3=83=80=E3=81=AE=E5=86=85=E5=AE=B9=E3=82=92=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=81=A7=E9=96=8B=E3=81=91=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=EF=BC=88=20http://piro.sakura.ne.jp?= =?UTF-8?q?/cgi-bin/bbs.cgi=3F2663=20=EF=BC=89?= 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@6582 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/bookmarksOverlay.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index 881d7932..bf1010d4 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -166,10 +166,12 @@ var TreeStyleTabBookmarksService = { if ('getContainerNodeWithOptions' in PlacesUtils) { // Firefox 3.5 or later root = PlacesUtils.getContainerNodeWithOptions(root, false, true); } + root = root.QueryInterface(Components.interfaces.nsINavHistoryContainerResultNode); var oldViewer = root.parentResult.viewer; var wasOpen = root.containerOpen; if (!wasOpen) { - root.parentResult.viewer = null; + if (oldViewer) + root.parentResult.viewer = null; root.containerOpen = true; } for (let i = 0, maxi = root.childCount; i < maxi; ++i) @@ -179,7 +181,8 @@ var TreeStyleTabBookmarksService = { } if (!wasOpen) { root.containerOpen = false; - root.parentResult.viewer = oldViewer; + if (oldViewer) + root.parentResult.viewer = oldViewer; } return ids; },