tdf#138232 don't grab focus if we already have it

Change-Id: I6fe852c87937ea4353822474ae1b7e20c9436f94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105941
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index 9d38913..a1860ee 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -143,7 +143,7 @@ void impl_executeSearch( const css::uno::Reference< css::uno::XComponentContext 
                if (pItemWin)
                {
                    sFindText = pItemWin->get_active_text();
                    if (aFindAll)
                    if (aFindAll && !pItemWin->ControlHasFocus())
                        pItemWin->GetFocus();
                }
            } else if ( sItemCommand == COMMAND_MATCHCASE )