Ensure ERC Exclusions are maintained

After we load/resolve the exclusions, we want to ensure that the
resolved ones are re-recorded into the project file so that it always
remains consistent with the state of the system.  This way, if pcbnew
closes first and re-saves the project, our exclusions are not lost until
the schematic closes

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21410
This commit is contained in:
Seth Hillbrand 2025-08-24 15:59:26 -07:00
parent eb753b8a1b
commit 5442e5050e

View File

@ -906,6 +906,10 @@ void SCHEMATIC::ResolveERCExclusionsPostUpdate()
else
RootScreen()->Append( marker );
}
// Once we have the ERC Exclusions, record them in the project file so that
// they are retained even before the schematic is saved (PCB Editor can also save the project)
RecordERCExclusions();
}