sc/source/ui/navipi/content.cxx |    3 +++
 vcl/jsdialog/enabled.cxx        |    3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit aece3a278540a110850c4a5331bb1c097c41fe2f
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Jul 3 15:18:59 2025 +0000
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Thu Jul 3 17:39:19 2025 +0200

    jsdialog: disable right click menu in sc navigator
    
    The menu wasn't available in the LOK case due to missing JSDialog
    enablement and doesn't seems to be useful.
    
    It caused problems:
    - open calc
    - open navigator
    - right-click any entry
    
    result: non-async dialog is opened in the core but not visible
            cannot type anything
    
    Change-Id: Iebf0e5f6ad06ef676931f4b9b18a168b6b9ec58a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187341
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 51e7347b7254..e7fdd060a444 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -563,6 +563,9 @@ IMPL_LINK(ScContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
     {
         case CommandEventId::ContextMenu:
             {
+                if (comphelper::LibreOfficeKit::isActive())
+                    break;
+
                 //  drag-and-drop mode
                 std::unique_ptr<weld::Builder> 
xBuilder(Application::CreateBuilder(m_xTreeView.get(), 
u"modules/scalc/ui/dropmenu.ui"_ustr));
                 std::unique_ptr<weld::Menu> 
xPop(xBuilder->weld_menu(u"contextmenu"_ustr));
diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx
index 680009c202b4..14b183bcd3ac 100644
--- a/vcl/jsdialog/enabled.cxx
+++ b/vcl/jsdialog/enabled.cxx
@@ -30,7 +30,8 @@ constexpr auto IgnoredList
         { u"svx/ui/selectionmenu.ui" },
         { u"svx/ui/stylemenu.ui" },
         { u"svt/ui/tabbuttons.ui" },
-        { u"svx/ui/toolbarpopover.ui" }
+        { u"svx/ui/toolbarpopover.ui" },
+        { u"modules/scalc/ui/dropmenu.ui"}, // Calc -> Navigator -> right click
     });
 
 // ========== MOBILE DIALOGS ================================================= 
//

Reply via email to