IDE: always set an active run param mode if available

git-svn-id: branches/fixes_2_0@63591 -
This commit is contained in:
mattias 2020-07-17 09:30:02 +00:00
parent efa348b3c5
commit 764bbbc59c

View File

@ -377,10 +377,11 @@ begin
// NewActiveModeName doesn't have to exist any more
if Assigned(Find(NewActiveModeName)) then
ActiveModeName := NewActiveModeName;
end;
if (GetActiveMode=nil) and (Count>0) then
ActiveModeName := Modes[0].Name;
end;
end;
function TRunParamsOptions.Save(XMLConfig: TXMLConfig; const Path: string;
UsePathDelim: TPathDelimSwitch; const ASaveIn: TRunParamsOptionsModeSave