From 74a75f93aafba1326fdc6cac16639ac37c8c7fe3 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Fri, 3 Aug 2012 02:02:43 +0900 Subject: [PATCH] Save nested tree as nested bookmark folders correctly when a nested tree of tabs is droppend to bookmarks --- content/treestyletab/bookmarksOverlay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index 5e539709..45e624aa 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -79,7 +79,7 @@ var TreeStyleTabBookmarksService = { let index = aTreeStructure[i]; let parent = index > -1 ? aBookarmks[index] : null ; if (parent && (parent.folder || parent).isFolder) { - let folder = parent.folder || parent; + let folder = parent.isFolder ? parent : parent.folder ; this.BookmarksService.moveItem(item.id, folder.id, -1); item.folder = folder; }