Eeschema: ensure ERC exclusions list is up to date before saving it in *.kicad_pro

Fixes #10339
From master branch
This commit is contained in:
jean-pierre charras 2022-02-25 18:26:48 +01:00
parent 7d4cb91f39
commit 3801a8adc0
2 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,7 @@ void SCH_EDIT_FRAME::SaveSettings( APP_SETTINGS_BASE* aCfg )
void SCH_BASE_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg )
{
wxCHECK_RET( aCfg, wxT( "Call to SCH_BASE_FRAME::SaveSettings with null settings" ) );
wxCHECK_RET( aCfg, wxT( "Call to SCH_BASE_FRAME::LoadSettings with null settings" ) );
EDA_DRAW_FRAME::LoadSettings( aCfg );

View File

@ -1080,6 +1080,7 @@ bool SCH_EDIT_FRAME::SaveProject( bool aSaveAs )
}
else
{
RecordERCExclusions(); // ensure ERC Exclusions list is up to date
GetSettingsManager()->SaveProject();
}