diff --git a/src/ce_projgroup.pas b/src/ce_projgroup.pas index 08c74a8a..ee9cb10f 100644 --- a/src/ce_projgroup.pas +++ b/src/ce_projgroup.pas @@ -234,6 +234,13 @@ begin result.fFilename := fname else result.fFilename := ExtractRelativepath(fBasePath, fname); + if assigned(fFreeStanding) and SameFileName(fname, fFreeStanding.filename) then + begin + result.fProj := fFreeStanding; + fFreeStanding.inGroup(true); + fFreeStanding := nil; + result.fProj.activate; + end; end; function TProjectGroup.getProject(ix: Integer): ICECommonProject;