svx/source/tbxctrls/tbunosearchcontrollers.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 4a0cf72f40e9545d367f48617c2834146d7bec1a Author: Joren De Cuyper <jore...@libreoffice.org> Date: Sat May 2 17:48:39 2015 +0200 tdf#88608: clear SearchLabel when altering the search string Change-Id: Ifc31fbd1ddee1e055bb62b9ad098ae9410758147 Reviewed-on: https://gerrit.libreoffice.org/15598 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index a5f8b17..ea9519f 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();
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits