IDE: fixed saving .lpr file for virtual projects (bug #8666)

git-svn-id: trunk@10952 -
This commit is contained in:
vincents 2007-04-16 15:21:03 +00:00
parent 33c83a30ef
commit 73d15b87a6

View File

@ -7242,7 +7242,7 @@ begin
end;
// save main source
if (MainUnitInfo<>nil) and (not MainUnitInfo.IsVirtual) then begin
if (MainUnitInfo<>nil) and (not (sfDoNotSaveVirtualFiles in flags)) then begin
if MainUnitInfo.Loaded then begin
// loaded in source editor
Result:=DoSaveEditorFile(MainUnitInfo.EditorIndex,