Debugger-Config: fix assert for file history list

git-svn-id: trunk@61556 -
This commit is contained in:
martin 2019-07-10 12:41:25 +00:00
parent 7db25535c4
commit 31c1cc7cfa

View File

@ -320,8 +320,8 @@ begin
exit;
i := FDebuggerFileHistory.IndexOf(SelectedDebuggerClass.ExePathsMruGroup.ClassName);
Assert(i>0, 'Missing dbg lru');
if i > 0 then // should always be
Assert((i>=0) or (not SelectedDebuggerClass.NeedsExePath), 'Missing dbg lru');
if i >= 0 then // not found if not NeedExePath
TStringList(FDebuggerFileHistory.Objects[i]).Assign(cmbDebuggerPath.Items);