This error is no longer meaningful with UUIDs.
This commit is contained in:
parent
091f769106
commit
6b46c9b8be
|
@ -793,7 +793,7 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew )
|
|||
{
|
||||
source_module = nullptr;
|
||||
|
||||
for( auto mod : mainpcb->Modules() )
|
||||
for( MODULE* mod : mainpcb->Modules() )
|
||||
{
|
||||
if( module_in_edit->GetLink() == mod->m_Uuid )
|
||||
{
|
||||
|
@ -809,12 +809,6 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew )
|
|||
return false;
|
||||
}
|
||||
|
||||
if( aAddNew && source_module != NULL )
|
||||
{
|
||||
DisplayError( this, _( "Footprint already exists on board." ) );
|
||||
return false;
|
||||
}
|
||||
|
||||
m_toolManager->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||
pcbframe->GetToolManager()->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||
BOARD_COMMIT commit( pcbframe );
|
||||
|
|
Loading…
Reference in New Issue