sfx2/source/control/dispatch.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 59a86aff49ebc838c91355e98df66769b8054adc
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Dec 8 14:10:11 2023 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Feb 8 17:36:13 2024 +0100

    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.mcnam...@collabora.com>

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;

Reply via email to