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:
Jeff Young
2025-07-08 08:44:23 +01:00
parent 798f763090
commit 6a2bd02a22
+3 -1
View File
@@ -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