Don't link a project to a board more than once
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6929
This commit is contained in:
parent
a4ab596b8d
commit
5c8927678a
|
@ -139,6 +139,9 @@ void BOARD::BuildConnectivity()
|
||||||
|
|
||||||
void BOARD::SetProject( PROJECT* aProject )
|
void BOARD::SetProject( PROJECT* aProject )
|
||||||
{
|
{
|
||||||
|
if( m_project )
|
||||||
|
ClearProject();
|
||||||
|
|
||||||
m_project = aProject;
|
m_project = aProject;
|
||||||
|
|
||||||
if( aProject )
|
if( aProject )
|
||||||
|
|
Loading…
Reference in New Issue