diff options
author | Jim Raykowski <raykowj@gmail.com> | 2018-11-03 15:12:32 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2018-12-03 08:44:22 +0100 |
commit | f3a19b124754d5506d047dabd5750b9e650bbb0a (patch) | |
tree | 42891e65a6bfd66ae5fc4199b4e05a36614a4d85 /sfx2/source/sidebar | |
parent | 056845403c387f1fe286f9df13f73fa2fc6d0014 (diff) |
Fix undocking sidebar with tab bar menu undock locks focus
Missed this in
I91194db3cc23a24e805a90edaf1566f950ac129d
Change-Id: I9a9bb3cb47b19929577f4ee36206ea1c052adeca
Reviewed-on: https://gerrit.libreoffice.org/62833
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index f56534d02f46..46d03ba097b0 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -1046,6 +1046,8 @@ IMPL_LINK(SidebarController, OnMenuItemSelected, Menu*, pMenu, bool) { case MID_UNLOCK_TASK_PANEL: mpParentWindow->SetFloatingMode(true); + if (mpParentWindow->IsFloatingMode()) + mpParentWindow->ToTop(ToTopFlags::GrabFocusOnly); break; case MID_LOCK_TASK_PANEL: |