sfx2/source/control/dispatch.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit a6f26b87a0c6b0bb7a92ed0878e7aaa57ec64260
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Tue Nov 7 11:18:04 2023 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Nov 9 08:41:34 2023 +0100

    lok: notebookbar: fix unit-copy-paste in online
    
    we can't remove hack in SfxDispatcher::Update_Impl yet
    because this made unit-copy-paste test in online broken
    
    reverts part of:
    commit 1a6d16cb14342f9a66f99960e96027af6e5369ef
    lok: notebookbar: query SID_NOTEBOOKBAR only when requested to switch UI
    
    Signed-off-by: Szymon Kłos <szymon.k...@collabora.com>
    Change-Id: I8cd801bbc912f2ab3f710f5c7133445f07c4e5de
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159039
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 9134f8da574d..6a492bffda7e 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -1120,8 +1120,7 @@ void SfxDispatcher::Update_Impl( bool bForce )
     if ( xLayoutManager.is() )
         xLayoutManager->unlock();
 
-    if ( !comphelper::LibreOfficeKit::isActive() &&
-        SfxViewShell::Current() && SfxViewShell::Current()->GetDispatcher() )
+    if ( SfxViewShell::Current() && SfxViewShell::Current()->GetDispatcher() )
     {
         const SfxPoolItem *pItem;
         SfxViewShell::Current()->GetDispatcher()->QueryState(SID_NOTEBOOKBAR, 
pItem);

Reply via email to