mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
delete menuitem when destroying it from Martin Smat
git-svn-id: trunk@9022 -
This commit is contained in:
parent
49646f2597
commit
a2f388d27b
@ -284,6 +284,8 @@ end;
|
||||
|
||||
procedure TWin32WSMenuItem.DestroyHandle(const AMenuItem: TMenuItem);
|
||||
begin
|
||||
if Assigned(AMenuItem.Parent) then
|
||||
DeleteMenu(AMenuItem.Parent.Handle, AMenuItem.Command, MF_BYCOMMAND);
|
||||
DestroyMenu(AMenuItem.Handle);
|
||||
TriggerFormUpdate(AMenuItem);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user