summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-08 14:10:11 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-02-08 17:36:13 +0100
commit59a86aff49ebc838c91355e98df66769b8054adc (patch)
tree55cefdab10a39f78d5d1eac1e2cf511f5514afc2 /sfx2/source/control
parentbdd0579b58f7a3b8c1886ea8513618c647c0ad30 (diff)
kit mode is similar to !HAVE_FEATURE_DESKTOP mode wrt menubar
in that it is not used. SfxDispatcher: :SetMenu_Impl is 3.1% of long-profiling use Change-Id: I07bf0f130791795a49835e91ac8b8c5bec749f33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163102 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/dispatch.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 3b52f7ae322e..2fa4e52c3e27 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -1009,6 +1009,9 @@ void SfxDispatcher::SetMenu_Impl()
if ( !xImp->pFrame )
return;
+ if (comphelper::LibreOfficeKit::isActive())
+ return;
+
SfxViewFrame* pTop = xImp->pFrame->GetTopViewFrame();
if ( !pTop || pTop->GetBindings().GetDispatcher() != this )
return;