* Small fix so .lps file and .lrs files are not added to project

git-svn-id: trunk@20754 -
This commit is contained in:
michael 2009-06-27 13:10:33 +00:00
parent ee7e524e08
commit 2bfcf73b02

View File

@ -331,8 +331,8 @@ begin
begin
FN:=FTemplate.FileNames[I];
E:=ExtractFileExt(FN);
If (CompareText(E,'.lpr')<>0)
and (CompareText(E,'.lfm')<>0) then
If (CompareText(E,'.lpr')<>0) and (CompareText(E,'.lps')<>0)
and (CompareText(E,'.lfm')<>0) and (CompareText(E,'.lrs')<>0) then
begin
FN:=FProjectDirectory+FTemplate.TargetFileName(FN,FVariables);
LazarusIDE.DoOpenEditorFile(FN,-1,[ofAddToProject]);