Enforce symbol name not being empty
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15859
(cherry picked from commit e14e7e0bd9
)
This commit is contained in:
parent
e9b7737692
commit
01c5fab84b
|
@ -361,6 +361,12 @@ bool DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataFromWindow()
|
|||
wxString newName = EscapeString( m_SymbolNameCtrl->GetValue(), CTX_LIBID );
|
||||
wxString oldName = m_libEntry->GetName();
|
||||
|
||||
if( newName.IsEmpty() )
|
||||
{
|
||||
wxMessageBox( _( "Symbol must have a name." ) );
|
||||
return false;
|
||||
}
|
||||
|
||||
if( oldName != newName )
|
||||
{
|
||||
wxString libName = m_Parent->GetCurLib();
|
||||
|
|
Loading…
Reference in New Issue