[Libreoffice-commits] core.git: sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Aug 29 14:37:21 UTC 2018


 sfx2/source/sidebar/SidebarDockingWindow.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 17d8f6b0d78c11ac40a335917b3576f13d1e1b9d
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Tue Aug 7 14:31:16 2018 -0800
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Aug 29 16:36:57 2018 +0200

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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();
 }


More information about the Libreoffice-commits mailing list