vcl/source/window/dockmgr.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit db26f712e1edfef6b61a324b146310be00aeb100 Author: Heiko Tietze <tietze.he...@gmail.com> AuthorDate: Fri Jul 15 11:18:07 2022 +0200 Commit: Maxim Monastirsky <momonas...@gmail.com> CommitDate: Sun Jul 17 22:50:55 2022 +0200 Resolves tdf#143688 - Allow detaching of sub-toolbars when locked Change-Id: I36669d953eb9438df73256676e2dfbfe3c263031 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137100 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonas...@gmail.com> diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx index e71c7f420580..f836ff2f1cef 100644 --- a/vcl/source/window/dockmgr.cxx +++ b/vcl/source/window/dockmgr.cxx @@ -813,8 +813,7 @@ void ImplDockingWindowWrapper::StartPopupMode( ToolBox *pParentToolBox, FloatWin ImplPreparePopupMode(); // don't allow tearoff, if globally disabled - if( !StyleSettings::GetDockingFloatsSupported() || - ( GetWindow()->GetType() == WindowType::TOOLBOX && ToolBox::AlwaysLocked() ) ) + if( !StyleSettings::GetDockingFloatsSupported() ) nFlags &= ~FloatWinPopupFlags::AllowTearOff; // if the subtoolbar was opened via keyboard make sure that key events