mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Symbol Library Editor: save sym-lib-table only if it had been modified
This commit is contained in:
parent
0e9dedf3cd
commit
0668cd9d4c
@ -349,14 +349,9 @@ LIB_EDIT_FRAME::~LIB_EDIT_FRAME()
|
||||
void LIB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
|
||||
{
|
||||
if( saveAllLibraries() )
|
||||
{
|
||||
saveSymbolLibTables( true, true );
|
||||
Destroy();
|
||||
}
|
||||
else
|
||||
{
|
||||
Event.Veto();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1570,6 +1565,9 @@ bool LIB_EDIT_FRAME::addLibraryFile( bool aCreateNew )
|
||||
DisplayError( this, _( "Could not open the library file." ) );
|
||||
}
|
||||
|
||||
bool globalTable = ( libTable == &SYMBOL_LIB_TABLE::GetGlobalLibTable() );
|
||||
saveSymbolLibTables( globalTable, !globalTable );
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user