diff options
author | Joren De Cuyper <jorendc@libreoffice.org> | 2015-05-02 17:48:39 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-09 20:01:52 +0000 |
commit | 4a0cf72f40e9545d367f48617c2834146d7bec1a (patch) | |
tree | c3cc5a4f7aaf6df47870fead1e28b8ff0077d45c | |
parent | 101cc7a8a471b50947ccca0711417b2c0f3ef574 (diff) |
tdf#88608: clear SearchLabel when altering the search string
Change-Id: Ifc31fbd1ddee1e055bb62b9ad098ae9410758147
Reviewed-on: https://gerrit.libreoffice.org/15598
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index a5f8b17e8352..ea9519f4e071 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -42,6 +42,7 @@ #include <osl/mutex.hxx> #include <rtl/ref.hxx> #include <rtl/instance.hxx> +#include <svx/srchdlg.hxx> #include <vcl/fixed.hxx> @@ -195,6 +196,11 @@ bool FindTextFieldControl::PreNotify( NotifyEvent& rNEvt ) { case MouseNotifyEvent::KEYINPUT: { + // Clear SearchLabel when altering the search string + #if HAVE_FEATURE_DESKTOP + SvxSearchDialogWrapper::SetSearchLabel(SL_Empty); + #endif + const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent(); bool bShift = pKeyEvent->GetKeyCode().IsShift(); bool bMod1 = pKeyEvent->GetKeyCode().IsMod1(); |