IDE: refactor TProject.LoadBuildModes more.

git-svn-id: trunk@45629 -
This commit is contained in:
juha 2014-06-23 18:49:26 +00:00
parent 345f2fcb2e
commit b0076d4eca

View File

@ -2719,15 +2719,16 @@ end;
procedure TProject.LoadBuildModes(const Path: string; LoadData: boolean);
begin
if FReadFlags = [prfLoadParts] then exit; // prfLoadParts, no prfLoadPartBuildModes
if prfLoadParts in FReadFlags then begin
if FReadFlags <> [prfLoadParts] then begin // prfLoadParts, no prfLoadPartBuildModes
if prfLoadParts in FReadFlags then begin
if LoadData then
ClearBuildModes;
end;
if LoadData then
ClearBuildModes;
BuildModes.LoadProjFromXMLConfig(FXMLConfig, Path)
else
BuildModes.LoadSessionFromXMLConfig(FXMLConfig, Path, prfLoadParts in FReadFlags);
end;
if LoadData then
BuildModes.LoadProjFromXMLConfig(FXMLConfig, Path)
else
BuildModes.LoadSessionFromXMLConfig(FXMLConfig, Path, prfLoadParts in FReadFlags);
end;
procedure TProject.LoadFlags(const Path: string);