mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 00:59:30 +02:00
Carbon: Prevent exception when handling popup menu. Issue #28379, patch from C Western.
git-svn-id: trunk@54575 -
This commit is contained in:
parent
70ab84f55d
commit
4005ada739
@ -271,7 +271,7 @@ begin
|
||||
if CarbonMenu.Parent.Dismissed=kHIMenuDismissedBySelection then begin
|
||||
FillChar(Msg{%H-}, SizeOf(Msg), 0);
|
||||
Msg.msg := LM_ACTIVATE;
|
||||
CarbonMenu.LCLMenuItem.Dispatch(Msg);
|
||||
DeliverMessage(CarbonMenu.LCLMenuItem, Msg);
|
||||
if assigned(CarbonMenu.Parent) then // if parent not closed
|
||||
CarbonMenu.Parent.Dismissed:=0;
|
||||
Result := noErr;
|
||||
|
Loading…
Reference in New Issue
Block a user