mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:59:17 +02:00
Qt: removed workaround for darwin TPopupMenu.Close
git-svn-id: trunk@23587 -
This commit is contained in:
parent
da9f4b2ed4
commit
2ee917e36f
@ -8494,15 +8494,7 @@ end;
|
||||
procedure TQtMenu.DoPopupClose;
|
||||
begin
|
||||
if FMenuItem.Menu is TPopupMenu then
|
||||
begin
|
||||
{$IFDEF DARWIN}
|
||||
if Assigned(TPopupMenu(FMenuItem.Menu).OnClose) then
|
||||
TPopupMenu(FMenuItem.Menu).OnClose(FMenuItem.Menu);
|
||||
Menus.ActivePopupMenu := nil;
|
||||
{$ELSE}
|
||||
TPopupMenu(FMenuItem.Menu).Close;
|
||||
{$ENDIF}
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TQtMenu.SlotDestroy; cdecl;
|
||||
|
Loading…
Reference in New Issue
Block a user