summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-07-26 11:59:39 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2021-10-21 19:22:05 +0200
commit5f67ef053f7543d20d80669a4b3eba15f44fbeb4 (patch)
treeca3f221c3d7fe18b6f290be69b6c07e9bd6d61e8 /sfx2
parent66b0a84eae89c7fe02a4cdc4d314f4203025774e (diff)
online: keep sidebar opened
when we switch mode in online keep sidebar in opened state. For example when switching from notebookbar to classic mode - sidebar is set to "Tabs" what makes sidebar hidden in online. The same happened when crash occured. Change-Id: I5d0d1dba4c89b5e380a0bf717fabf4337016894c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119496 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit 2d9c05d615c2bf8dc494f4eec1213d27c74d24ef) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123975
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appserv.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 47fb7a5f92c7..4f9af60cb981 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -955,6 +955,9 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
// Sidebar
pViewFrame->ShowChildWindow( SID_SIDEBAR );
+ if (comphelper::LibreOfficeKit::isActive())
+ aSidebarMode = "Opened";
+
sfx2::sidebar::SidebarController* pSidebar =
sfx2::sidebar::SidebarController::GetSidebarControllerForFrame( xFrame );
if ( pSidebar )