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-08-18 16:22:48 +0200
commit83c4cdf4b8469dbe905349cc63b3b3512108e368 (patch)
tree9d5e35baf440972441040836d54c73d469393a62 /sfx2
parent358c7958b171eedac7b9b998448a27dd1b80af78 (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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120660 Tested-by: Jenkins
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 7339f34791d8..d2db452e0815 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -889,6 +889,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 )