summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2022-05-20 19:18:11 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2022-05-30 10:15:00 +0200
commit5423ee704c4b551a155d05f5ca308ed17936aed0 (patch)
tree457cc058cdc2e30ea9aca9d3b0b4ae1b4404a062 /sfx2
parentd49e388d7d384d7328047d8fccceddfa5953d2e3 (diff)
lok: sidebar: notebookbar: don't change view mode for other views
We should change view mode (notebookbar/toolbars) only for current view. This prevents the closed sidebar from showing when other view joins the session. Change-Id: Iaeec1bee0afab7552e223f17dd7afac27d288db9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134690 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 08891ae798b1e59719684d1b0343767c9d136a11) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135001 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appserv.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 2b1da7ce96cc..65bc3b101dc5 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -800,6 +800,14 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
pViewFrame = SfxViewFrame::GetFirst();
while( pViewFrame )
{
+ // in LOK case we want to apply changes only to the current view
+ if (comphelper::LibreOfficeKit::isActive() &&
+ pViewFrame != SfxViewShell::Current()->GetViewFrame())
+ {
+ pViewFrame = SfxViewFrame::GetNext( *pViewFrame );
+ continue;
+ }
+
Reference<XFrame> xFrame = pViewFrame->GetFrame().GetFrameInterface();
// We want to change mode only for a current app module, ignore other apps