From 493a784b6244a388ed06e2e53d7f35183a0a5027 Mon Sep 17 00:00:00 2001 From: RigoLigoRLC Date: Thu, 7 Jan 2021 03:14:36 +0800 Subject: [PATCH] Fix Pcbnew search "not found" prompt not displayed Before this, "Searching..." prompt will not go away if nothing was found in a search session. A bug I noticed while working on !611. After this fix, "foo not found" will be displayed when Pcbnew cannot find the given text. --- pcbnew/dialogs/dialog_find.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/dialogs/dialog_find.cpp b/pcbnew/dialogs/dialog_find.cpp index b1c82446fd..15509e897c 100644 --- a/pcbnew/dialogs/dialog_find.cpp +++ b/pcbnew/dialogs/dialog_find.cpp @@ -335,6 +335,8 @@ void DIALOG_FIND::search( bool aDirection ) m_frame->SetStatusText( wxEmptyString ); msg.Printf( _( "\"%s\" not found" ), searchString ); m_frame->ShowInfoBarMsg( msg ); + + m_status->SetLabel( msg ); } else if( endIsReached ) {