From 83c4cdf4b8469dbe905349cc63b3b3512108e368 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szymon=20K=C5=82os?= Date: Mon, 26 Jul 2021 11:59:39 +0200 Subject: [PATCH] online: keep sidebar opened MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Szymon Kłos Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120660 Tested-by: Jenkins --- sfx2/source/appl/appserv.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ) -- 2.11.4.GIT