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.
This commit is contained in:
RigoLigoRLC 2021-01-07 03:14:36 +08:00 committed by Jeff Young
parent dd328d230b
commit 493a784b62
1 changed files with 2 additions and 0 deletions

View File

@ -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 )
{