mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +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 )
|
void LIB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
|
||||||
{
|
{
|
||||||
if( saveAllLibraries() )
|
if( saveAllLibraries() )
|
||||||
{
|
|
||||||
saveSymbolLibTables( true, true );
|
|
||||||
Destroy();
|
Destroy();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
Event.Veto();
|
Event.Veto();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1570,6 +1565,9 @@ bool LIB_EDIT_FRAME::addLibraryFile( bool aCreateNew )
|
|||||||
DisplayError( this, _( "Could not open the library file." ) );
|
DisplayError( this, _( "Could not open the library file." ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool globalTable = ( libTable == &SYMBOL_LIB_TABLE::GetGlobalLibTable() );
|
||||||
|
saveSymbolLibTables( globalTable, !globalTable );
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user