diff options
author | Jim Raykowski <raykowj@gmail.com> | 2018-08-07 14:31:16 -0800 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-29 16:36:57 +0200 |
commit | 17d8f6b0d78c11ac40a335917b3576f13d1e1b9d (patch) | |
tree | 935ab8a975ee5cff581a3820d52ca44c5ae639b2 /sfx2/source/sidebar | |
parent | ca2b546a8a4c80f4f589ef529b3cb98d0c3bf048 (diff) |
tdf#102031 Expand collapsed deck when sidebar docking window gets focus
SidebarDockingWindow::GetFocus hides focus when deck is in collapsed
state so request open deck before setting focus to deck/panel title
Change-Id: I7d7f6d940a3722eb02e6356c069c4d9df9642326
Reviewed-on: https://gerrit.libreoffice.org/58712
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r-- | sfx2/source/sidebar/SidebarDockingWindow.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx index 1c02f63a41e6..fe24d5523ad8 100644 --- a/sfx2/source/sidebar/SidebarDockingWindow.cxx +++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx @@ -74,7 +74,10 @@ void SidebarDockingWindow::DoDispose() void SidebarDockingWindow::GetFocus() { if (mpSidebarController.is()) + { + mpSidebarController->RequestOpenDeck(); mpSidebarController->GetFocusManager().GrabFocus(); + } else SfxDockingWindow::GetFocus(); } |