mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 13:19:20 +02:00
IDE: Move "if not FLoadParts ..." test outside of TProject.LoadFromLPI.
git-svn-id: trunk@45761 -
This commit is contained in:
parent
a9154fe760
commit
399317698e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user