[Libreoffice-commits] core.git: svx/source
Joren De Cuyper
jorendc at libreoffice.org
Sat May 9 13:02:13 PDT 2015
svx/source/tbxctrls/tbunosearchcontrollers.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 4a0cf72f40e9545d367f48617c2834146d7bec1a
Author: Joren De Cuyper <jorendc at 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 <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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();
More information about the Libreoffice-commits
mailing list