From d2539669a4e55ab415bf5ba1b7df1b0331da4cac Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 14 Jul 2016 07:25:01 +0200 Subject: [PATCH] projects group, attach the FSP to newly added group item if both match --- src/ce_projgroup.pas | 7 +++++++ 1 file changed, 7 insertions(+) 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;