mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 11:59:20 +02:00
IdeIntf: Revert checking an event handler creation. Issue #41019.
This commit is contained in:
parent
17de96970d
commit
ed4d485f1f
@ -4854,7 +4854,6 @@ procedure TMethodPropertyEditor.Edit;
|
|||||||
var
|
var
|
||||||
NewMethodName: String;
|
NewMethodName: String;
|
||||||
r: TModalResult;
|
r: TModalResult;
|
||||||
m: TMethod;
|
|
||||||
begin
|
begin
|
||||||
NewMethodName := GetValue;
|
NewMethodName := GetValue;
|
||||||
{$IFDEF VerboseMethodPropEdit}
|
{$IFDEF VerboseMethodPropEdit}
|
||||||
@ -4890,9 +4889,8 @@ begin
|
|||||||
{$IFDEF VerboseMethodPropEdit}
|
{$IFDEF VerboseMethodPropEdit}
|
||||||
debugln(['TMethodPropertyEditor.Edit CreateMethod "',NewMethodName,'"...']);
|
debugln(['TMethodPropertyEditor.Edit CreateMethod "',NewMethodName,'"...']);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
m:=PropertyHook.CreateMethod(NewMethodName,GetPropType,GetComponent(0),GetPropertyPath(0));
|
SetMethodValue(PropertyHook.CreateMethod(NewMethodName, GetPropType,
|
||||||
if m.Code=nil then exit;
|
GetComponent(0), GetPropertyPath(0)));
|
||||||
SetMethodValue(m);
|
|
||||||
{$IFDEF VerboseMethodPropEdit}
|
{$IFDEF VerboseMethodPropEdit}
|
||||||
debugln(['TMethodPropertyEditor.Edit CHANGED new method=',GetValue]);
|
debugln(['TMethodPropertyEditor.Edit CHANGED new method=',GetValue]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
Loading…
Reference in New Issue
Block a user