From 2c317751c4b7661c10bd9eb11094febeccd1b816 Mon Sep 17 00:00:00 2001 From: Kshitij Pathania Date: Sun, 24 Jun 2018 01:57:11 +0530 Subject: Notebookbar:Disabled appearence of context toolbars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib4a5a1f1904976e9f511d7a908393cb072bc3aea Reviewed-on: https://gerrit.libreoffice.org/56341 Tested-by: Jenkins Reviewed-by: Szymon Kłos Tested-by: Szymon Kłos --- sfx2/source/appl/workwin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index 20ad05d51573..3f6f3ca0a1e1 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -54,6 +54,7 @@ #include #include #include +#include using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -1194,7 +1195,7 @@ void SfxWorkWindow::UpdateObjectBars_Impl2() // Is a ToolBox required in this context ? bool bModesMatching = (nUpdateMode != SfxVisibilityFlags::Invisible) && ((nTbxMode & nUpdateMode) == nUpdateMode); - if ( bDestroy ) + if ( bDestroy || sfx2::SfxNotebookBar::IsActive()) { OUString aTbxId( m_aTbxTypeName ); aTbxId += GetResourceURLFromToolbarId(eId); -- cgit v1.2.3