libedit: fix crash on Delete Component with no selection
This bug was actually here before the new component chooser this time; I'm not sure what the purpose of this error message was since it is being displayed in a non-error state. Maybe a copy/paste bug from when Delete Component was changed to use the main component chooser?
This commit is contained in:
parent
d2b0a4b358
commit
a9afb872d5
|
@ -549,10 +549,6 @@ void LIB_EDIT_FRAME::DeleteOnePart( wxCommandEvent& event )
|
||||||
|
|
||||||
if( !libEntry )
|
if( !libEntry )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Entry '%s' not found in library '%s'." ),
|
|
||||||
GetChars( libEntry->GetName() ),
|
|
||||||
GetChars( lib->GetName() ) );
|
|
||||||
DisplayError( this, msg );
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue