Separate two commands in two lines, so debugging can reveal the crashing command

This commit is contained in:
Ansgar Becker
2024-06-17 11:06:03 +02:00
parent f95140d9de
commit 87f3ced187

View File

@@ -3554,7 +3554,8 @@ end;
procedure TWinControlHelper.TrySetFocus;
begin
try
if Enabled and CanFocus then
if Enabled
and CanFocus then
SetFocus;
except
on E:EInvalidOperation do