sc/source/ui/navipi/content.cxx | 3 +++ vcl/jsdialog/enabled.cxx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)
New commits: commit 9b6c0fb4c24b239d60f952b48037fbe020d1215a Author: Szymon Kłos <[email protected]> AuthorDate: Thu Jul 3 15:18:59 2025 +0000 Commit: Szymon Kłos <[email protected]> CommitDate: Fri Jul 4 07:58:25 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/+/187342 Tested-by: Jenkins Reviewed-by: Szymon Kłos <[email protected]> diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 8ce1163c23e3..718c5b2ff2fd 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 ================================================= //
