diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-11-16 14:21:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-11-16 21:18:58 +0100 |
commit | 54fd77a368208cc759024c05b7f1df7eb85d294e (patch) | |
tree | dc8fc9a95fcdf557b5e3a07762ef46aa6f462570 /svx | |
parent | b92d1d509a1db2179779a4776590734590290a41 (diff) |
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>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index 9d389139f18f..a1860eea7126 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 ) |