User could lock the file at any time (KICAD-73V).
The file being locked is not a programming error.
(cherry picked from commit e18b4cbf72)
This commit is contained in:
@@ -175,7 +175,9 @@ bool SYMBOL_LIBRARY_MANAGER::SaveLibrary( const wxString& aLibrary, const wxStri
|
||||
wxCHECK( aFileType != SCH_IO_MGR::SCH_FILE_T::SCH_LEGACY, false );
|
||||
|
||||
wxFileName fn( aFileName );
|
||||
wxCHECK( !fn.FileExists() || fn.IsFileWritable(), false );
|
||||
|
||||
if( fn.FileExists() && !fn.IsFileWritable() )
|
||||
return false;
|
||||
|
||||
IO_RELEASER<SCH_IO> pi( SCH_IO_MGR::FindPlugin( aFileType ) );
|
||||
bool res = true; // assume all libraries are successfully saved
|
||||
|
||||
Reference in New Issue
Block a user