Allow editing symbols when added to schematic

We do not allow editing symbols in Legacy libraries, but once they are
added to the schematic, they become editable
This commit is contained in:
Seth Hillbrand 2021-07-16 12:03:17 -07:00
parent 1a5e63bcab
commit d1c9572bcc
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES( SYMBOL_EDIT_FRAME* a
m_deleteFilterButton->SetBitmap( KiBitmap( BITMAPS::small_trash ) );
m_editFilterButton->SetBitmap( KiBitmap( BITMAPS::small_edit ) );
if( aParent->IsSymbolFromLegacyLibrary() )
if( aParent->IsSymbolFromLegacyLibrary() && !aParent->IsSymbolFromSchematic() )
{
m_stdSizerButtonCancel->SetDefault();
m_stdSizerButtonOK->SetLabel( _( "Read Only" ) );