mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 00:59:21 +02:00
lcl: be sure that popup menu will notify a control on destruction
git-svn-id: trunk@21843 -
This commit is contained in:
parent
eaa3c7ca92
commit
ece2fcadca
@ -3539,7 +3539,9 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TControl.SetPopupMenu(Value: TPopupMenu);
|
||||
begin
|
||||
FPopupMenu := Value;
|
||||
FPopupMenu := Value;
|
||||
if FPopupMenu <> nil then
|
||||
FPopupMenu.FreeNotification(Self);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user