IDE: Move "if not FLoadParts ..." test outside of TProject.LoadFromLPI.

git-svn-id: trunk@45761 -
This commit is contained in:
juha 2014-07-03 11:50:56 +00:00
parent a9154fe760
commit 399317698e

View File

@ -2821,11 +2821,8 @@ begin
end;
procedure TProject.LoadFromLPI;
var
Path: String;
begin
Path:='ProjectOptions/';
if not FLoadParts then
const
Path = 'ProjectOptions/';
begin
if (FFileVersion=0) and (FXMLConfig.GetValue(Path+'Units/Count',0)=0) then
if IDEMessageDialog(lisStrangeLpiFile,
@ -2890,7 +2887,6 @@ begin
if Assigned(OnLoadProjectInfo) then
OnLoadProjectInfo(Self, FXMLConfig, false);
end;
end;
procedure TProject.LoadFromSession;
var
@ -2975,6 +2971,7 @@ begin
fCurStorePathDelim:=StorePathDelim;
{$IFDEF IDE_MEM_CHECK}CheckHeapWrtMemCnt('TProject.ReadProject C reading values');{$ENDIF}
FFileVersion:= FXMLConfig.GetValue('ProjectOptions/Version/Value',0);
if not FLoadParts then
LoadFromLPI;
// load MacroValues and compiler options
ClearBuildModes;