mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 14:38:01 +02:00
LCL: Use "try finally" block for function DefaultInputDialog. Issue #35451, patch from Serge Anvarov.
git-svn-id: trunk@61064 -
This commit is contained in:
parent
94fcd9ed54
commit
09945b4668
@ -33,7 +33,7 @@ begin
|
||||
Form.DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('ShowInputDialog'){$ENDIF};
|
||||
Form.CreateNew(nil, 0);
|
||||
with Form do
|
||||
begin
|
||||
try
|
||||
PopupMode := pmAuto;
|
||||
BorderStyle := bsDialog;
|
||||
Caption := InputCaption;
|
||||
@ -95,6 +95,7 @@ begin
|
||||
Value := Edit.Text;
|
||||
Result := True;
|
||||
end;
|
||||
finally
|
||||
Form.Free;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user