IDE: new unit: fixed using IsPascalUnit when adding file to uses section of project

git-svn-id: trunk@18621 -
This commit is contained in:
mattias 2009-02-09 20:03:04 +00:00
parent 00da47ed08
commit 35ccd93e17
3 changed files with 3 additions and 0 deletions

View File

@ -6974,6 +6974,7 @@ begin
if OldUnitIndex<0 then begin
Project1.AddFile(NewUnitInfo,
NewFileDescriptor.AddToProject
and NewFileDescriptor.IsPascalUnit
and NewUnitInfo.IsPartOfProject);
end;

View File

@ -464,6 +464,7 @@ begin
inherited Create;
Name:='custom program';
DefaultFilename:='project.pas';
IsPascalUnit:=false;
end;
function TFileDescSimplePascalProgram.GetLocalizedName: string;

View File

@ -1269,6 +1269,7 @@ begin
Name:=FileDescNamePascalUnit;
DefaultFilename:='unit.pas';
DefaultSourceName:='Unit1';
IsPascalUnit:=true;
end;
function TFileDescPascalUnit.CreateSource(const Filename, SourceName,