Kaydet (Commit) f3ea5e21 authored tarafından Mike Kaganski's avatar Mike Kaganski

Revert "Revert "Notebookbar:Disabled appearence of context toolbars""

This reverts commit 9a616952 now
that proper fix for both tdf#121591 and tdf#119945 is pushed -
see commit 0a36be3f.

Change-Id: Ia44510d427e0626a5f566210247db8848653f8e2
Reviewed-on: https://gerrit.libreoffice.org/64279
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 597aeaf7
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#include <com/sun/star/lang/DisposedException.hpp> #include <com/sun/star/lang/DisposedException.hpp>
#include <type_traits> #include <type_traits>
#include <unordered_map> #include <unordered_map>
#include <sfx2/notebookbar/SfxNotebookBar.hxx>
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
...@@ -1203,7 +1204,7 @@ void SfxWorkWindow::UpdateObjectBars_Impl2() ...@@ -1203,7 +1204,7 @@ void SfxWorkWindow::UpdateObjectBars_Impl2()
// Is a ToolBox required in this context ? // Is a ToolBox required in this context ?
bool bModesMatching = (nUpdateMode != SfxVisibilityFlags::Invisible) && ((nTbxMode & nUpdateMode) == nUpdateMode); bool bModesMatching = (nUpdateMode != SfxVisibilityFlags::Invisible) && ((nTbxMode & nUpdateMode) == nUpdateMode);
if ( bDestroy ) if ( bDestroy || sfx2::SfxNotebookBar::IsActive())
{ {
OUString aTbxId = g_aTbxTypeName + GetResourceURLFromToolbarId(eId); OUString aTbxId = g_aTbxTypeName + GetResourceURLFromToolbarId(eId);
xLayoutManager->destroyElement( aTbxId ); xLayoutManager->destroyElement( aTbxId );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment