IDE: refactor TProject.LoadBuildModes. (is the original logic correct?)

git-svn-id: trunk@45628 -
This commit is contained in:
juha 2014-06-23 18:49:14 +00:00
parent 75a6bae773
commit 345f2fcb2e

View File

@ -2719,8 +2719,8 @@ 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 not (prfLoadPartBuildModes in FReadFlags) then exit;
if LoadData then
ClearBuildModes;
end;