@ -418,7 +418,7 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
}
// Release the lock file, until the new file is actually loaded
m_file_checker.reset( nullptr );
ReleaseFile();
wxFileName pro = fullFileName;
pro.SetExt( ProjectFileExtension );
@ -48,6 +48,9 @@ bool PCB_EDIT_FRAME::Clear_Pcb( bool aQuery )
return false;
// Release the lock file, if exists
// Clear undo and redo lists because we want a full deletion
GetScreen()->ClearUndoRedoList();
GetScreen()->ClrModify();