Debugger: Fix "use instance class" button, in watches properties.

This commit is contained in:
Martin 2021-11-27 23:04:27 +01:00
parent 79d6afe4b6
commit 9e41ef446f

View File

@ -101,12 +101,11 @@ begin
then FWatch.DisplayFormat := StyleToDispFormat[rgStyle.ItemIndex] then FWatch.DisplayFormat := StyleToDispFormat[rgStyle.ItemIndex]
else FWatch.DisplayFormat := wdfDefault; else FWatch.DisplayFormat := wdfDefault;
FWatch.EvaluateFlags := [];
if chkUseInstanceClass.Checked if chkUseInstanceClass.Checked
then FWatch.EvaluateFlags := [defClassAutoCast] then FWatch.EvaluateFlags := FWatch.EvaluateFlags + [defClassAutoCast];
else FWatch.EvaluateFlags := [];
if chkAllowFunc.Checked if chkAllowFunc.Checked
then FWatch.EvaluateFlags := FWatch.EvaluateFlags + [defAllowFunctionCall] then FWatch.EvaluateFlags := FWatch.EvaluateFlags + [defAllowFunctionCall];
else FWatch.EvaluateFlags := [];
FWatch.RepeatCount := StrToIntDef(txtRepCount.Text, 0); FWatch.RepeatCount := StrToIntDef(txtRepCount.Text, 0);
FWatch.Enabled := chkEnabled.Checked; FWatch.Enabled := chkEnabled.Checked;