diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-11-07 11:18:04 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-11-09 08:41:34 +0100 |
commit | a6f26b87a0c6b0bb7a92ed0878e7aaa57ec64260 (patch) | |
tree | 143735ca3703e863871cd5374f692c14c805d622 /sfx2/source/control | |
parent | eef9ed1fa7c6b1fcd9dbe2942243e7957f9cdee1 (diff) |
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.klos@collabora.com>
Change-Id: I8cd801bbc912f2ab3f710f5c7133445f07c4e5de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159039
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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); |