IDE: when adding new unit, check for project flag MainUsesSectionHasAllUnits, bug #17495

git-svn-id: trunk@27492 -
This commit is contained in:
mattias 2010-09-27 20:42:28 +00:00
parent 534bc9d03d
commit 07b18a1c5c

View File

@ -7837,7 +7837,8 @@ begin
Project1.AddFile(NewUnitInfo,
NewFileDescriptor.AddToProject
and NewFileDescriptor.IsPascalUnit
and NewUnitInfo.IsPartOfProject);
and NewUnitInfo.IsPartOfProject
and (pfMainUnitHasUsesSectionForAllUnits in Project1.Flags));
end;
// syntax highlighter type