summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2022-07-15 11:18:07 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2022-07-17 22:50:55 +0200
commitdb26f712e1edfef6b61a324b146310be00aeb100 (patch)
treed09c05fd54df4c5306deae70495a7a02696cc771 /vcl
parentf87c7018fa5641eeecd788907ea66892514255a6 (diff)
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 <momonasmon@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dockmgr.cxx3
1 files changed, 1 insertions, 2 deletions
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