mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
IDE: new unit: fixed using IsPascalUnit when adding file to uses section of project
git-svn-id: trunk@18621 -
This commit is contained in:
parent
00da47ed08
commit
35ccd93e17
@ -6974,6 +6974,7 @@ begin
|
||||
if OldUnitIndex<0 then begin
|
||||
Project1.AddFile(NewUnitInfo,
|
||||
NewFileDescriptor.AddToProject
|
||||
and NewFileDescriptor.IsPascalUnit
|
||||
and NewUnitInfo.IsPartOfProject);
|
||||
end;
|
||||
|
||||
|
@ -464,6 +464,7 @@ begin
|
||||
inherited Create;
|
||||
Name:='custom program';
|
||||
DefaultFilename:='project.pas';
|
||||
IsPascalUnit:=false;
|
||||
end;
|
||||
|
||||
function TFileDescSimplePascalProgram.GetLocalizedName: string;
|
||||
|
@ -1269,6 +1269,7 @@ begin
|
||||
Name:=FileDescNamePascalUnit;
|
||||
DefaultFilename:='unit.pas';
|
||||
DefaultSourceName:='Unit1';
|
||||
IsPascalUnit:=true;
|
||||
end;
|
||||
|
||||
function TFileDescPascalUnit.CreateSource(const Filename, SourceName,
|
||||
|
Loading…
Reference in New Issue
Block a user