Fix zone/connectivity deadlock.

This commit is contained in:
Jeff Young 2022-02-28 22:05:43 +00:00
parent 9fec8aa269
commit a4a3f6ff74
1 changed files with 1 additions and 5 deletions

View File

@ -206,13 +206,9 @@ void ZONE_CREATE_HELPER::commitZone( std::unique_ptr<ZONE> aZone )
aZone->HatchBorder();
// TODO Refill zones when KiCad supports auto re-fill
commit.Add( aZone.get() );
std::lock_guard<KISPINLOCK> lock( board->GetConnectivity()->GetLock() );
commit.Push( _( "Add a zone" ) );
m_tool.GetManager()->RunAction( PCB_ACTIONS::selectItem, true, aZone.release() );
break;
}