Designer: Fix crash when pressing [Ctrl+Enter] with invalid name in rename dialog

This commit is contained in:
n7800 2025-05-03 23:33:03 +00:00
parent f2e1746dfa
commit d424ffceb9

View File

@ -219,7 +219,8 @@ begin
if (Key=VK_RETURN) and (ssCtrl in Shift) then
begin
Key := 0;
ButtonPanel1.OKButton.Click;
if ButtonPanel1.OKButton.Enabled then
ButtonPanel1.OKButton.Click;
end;
end;