From 6e4396404da8037baa863893cee45be3d9978b1a Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Tue, 17 Jan 2017 23:48:55 +0000 Subject: [PATCH] frmSearch: Clear status bar when reset button is pressed --- source/search/frmSearch.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/search/frmSearch.cpp b/source/search/frmSearch.cpp index 9e4d8aa..3ef2a0d 100644 --- a/source/search/frmSearch.cpp +++ b/source/search/frmSearch.cpp @@ -232,6 +232,15 @@ void frmSearch::ResetContacts( wxCommandEvent& event ) } + // Clear the status bar. + + wxCommandEvent statusResetEvent (SE_SBUPDATE); + + wxString *statusReset = new wxString(wxT("")); + + statusResetEvent.SetClientData(statusReset); + wxPostEvent(this, statusResetEvent); + // Add a search settings with the default things. ScrollGen = 0; -- 2.39.5