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:
parent
dd328d230b
commit
493a784b62
|
@ -335,6 +335,8 @@ void DIALOG_FIND::search( bool aDirection )
|
||||||
m_frame->SetStatusText( wxEmptyString );
|
m_frame->SetStatusText( wxEmptyString );
|
||||||
msg.Printf( _( "\"%s\" not found" ), searchString );
|
msg.Printf( _( "\"%s\" not found" ), searchString );
|
||||||
m_frame->ShowInfoBarMsg( msg );
|
m_frame->ShowInfoBarMsg( msg );
|
||||||
|
|
||||||
|
m_status->SetLabel( msg );
|
||||||
}
|
}
|
||||||
else if( endIsReached )
|
else if( endIsReached )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue