This error is no longer meaningful with UUIDs.

This commit is contained in:
Jeff Young 2020-08-31 14:10:39 +01:00
parent 091f769106
commit 6b46c9b8be
1 changed files with 1 additions and 7 deletions

View File

@ -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 );