mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 20:56:14 +02:00
IDE: when adding new unit, check for project flag MainUsesSectionHasAllUnits, bug #17495
git-svn-id: trunk@27492 -
This commit is contained in:
parent
534bc9d03d
commit
07b18a1c5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user