mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-21 08:39:50 +01:00
IDE: fix reading LPS run modes.
git-svn-id: trunk@56804 -
This commit is contained in:
parent
cefafdd5ca
commit
4d25ca2d88
@ -354,8 +354,6 @@ begin
|
||||
//don't clear! needed for merging lpi and lps
|
||||
|
||||
Cnt := XMLConfig.GetValue(Path + 'Modes/Count', 0);
|
||||
if ASaveIn=rpsLPS then
|
||||
ActiveModeName := XMLConfig.GetValue(Path + 'Modes/ActiveMode', '');
|
||||
Result := mrOK;
|
||||
|
||||
for I := 0 to Cnt-1 do
|
||||
@ -368,8 +366,12 @@ begin
|
||||
Exit;
|
||||
end;
|
||||
|
||||
if (GetActiveMode=nil) and (Count>0) and (ASaveIn=rpsLPS) then
|
||||
ActiveModeName := Modes[0].Name;
|
||||
if ASaveIn=rpsLPS then
|
||||
begin
|
||||
ActiveModeName := XMLConfig.GetValue(Path + 'Modes/ActiveMode', '');
|
||||
if (GetActiveMode=nil) and (Count>0) then
|
||||
ActiveModeName := Modes[0].Name;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TRunParamsOptions.Save(XMLConfig: TXMLConfig; const Path: string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user