[Libreoffice-commits] .: sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 28 09:54:41 PST 2013


 sfx2/source/doc/templatedlg.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4651402a5399e00f62311bb3fe545413b0818a2d
Author: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
Date:   Mon Jan 28 18:50:39 2013 +0100

    Template Manager: focus in search edit when clicking search action

diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index b756111..d3721ab 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -964,6 +964,8 @@ void SfxTemplateManagerDlg::OnTemplateSearch ()
 
     mpSearchEdit->Show(!bVisible);
     mpSearchEdit->SetText(OUString());
+    if (!bVisible)
+        mpSearchEdit->GrabFocus();
 
     // display all templates if we hide the search bar
     if (bVisible && mpCurView->isOverlayVisible())


More information about the Libreoffice-commits mailing list