From d846ef7beef06cd22b57137d78d75f0b1a6092b3 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Wed, 21 Apr 2021 11:29:09 +0800 Subject: [PATCH] [Pale-Moon] Issue #1701 - Allow Open All in Tabs for containers with only one child URI --- application/palemoon/components/places/content/controller.js | 2 +- application/palemoon/components/places/content/sidebarUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/palemoon/components/places/content/controller.js b/application/palemoon/components/places/content/controller.js index 1c8eeee514..33312330f5 100644 --- a/application/palemoon/components/places/content/controller.js +++ b/application/palemoon/components/places/content/controller.js @@ -633,7 +633,7 @@ PlacesController.prototype = { if (!openContainerInTabsItem.hidden) { var containerToUse = this._view.selectedNode || this._view.result.root; if (PlacesUtils.nodeIsContainer(containerToUse)) { - if (!PlacesUtils.hasChildURIs(containerToUse, true)) { + if (!PlacesUtils.hasChildURIs(containerToUse)) { openContainerInTabsItem.disabled = true; // Ensure that we don't display the menu if nothing is enabled: usableItemCount--; diff --git a/application/palemoon/components/places/content/sidebarUtils.js b/application/palemoon/components/places/content/sidebarUtils.js index 9a2660bd67..66ea103777 100644 --- a/application/palemoon/components/places/content/sidebarUtils.js +++ b/application/palemoon/components/places/content/sidebarUtils.js @@ -36,7 +36,7 @@ var SidebarUtils = { var openInTabs = isContainer && (aEvent.button == 1 || (aEvent.button == 0 && modifKey)) && - PlacesUtils.hasChildURIs(tbo.view.nodeForTreeIndex(cell.row), true); + PlacesUtils.hasChildURIs(tbo.view.nodeForTreeIndex(cell.row)); if (aEvent.button == 0 && isContainer && !openInTabs) { tbo.view.toggleOpenState(cell.row);