IDE: always set an active run param mode if available

git-svn-id: trunk@63590 -
This commit is contained in:
mattias 2020-07-17 09:29:39 +00:00
parent cf603da31a
commit ec3c7be03b

View File

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