mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 13:39:11 +02:00
IDE: designer: check result of AddClicked
git-svn-id: trunk@45048 -
This commit is contained in:
parent
af1b32c183
commit
43ebc91b4e
@ -2191,8 +2191,8 @@ var
|
|||||||
|
|
||||||
// find a parent for the new component
|
// find a parent for the new component
|
||||||
NewParent:=nil;
|
NewParent:=nil;
|
||||||
PropertyEditorHook.AddClicked(Self,MouseDownComponent,Button,Shift,
|
if not PropertyEditorHook.AddClicked(Self,MouseDownComponent,Button,Shift,
|
||||||
MouseUpPos.X,MouseUpPos.Y,NewComponentClass,NewParent);
|
MouseUpPos.X,MouseUpPos.Y,NewComponentClass,NewParent) then exit;
|
||||||
if Mediator<>nil then begin
|
if Mediator<>nil then begin
|
||||||
// mediator, non LCL components
|
// mediator, non LCL components
|
||||||
if NewParent=nil then
|
if NewParent=nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user