mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 12:52:11 +02:00
Qt: do not call directly TPopupMenu().Close, since it crashes on MacOsX, set global variable Menus.ActivePopupMenu := nil and use OnClose()
git-svn-id: trunk@23548 -
This commit is contained in:
parent
15f98d8c3f
commit
29758e8f72
@ -8480,7 +8480,11 @@ end;
|
||||
procedure TQtMenu.DoPopupClose;
|
||||
begin
|
||||
if FMenuItem.Menu is TPopupMenu then
|
||||
TPopupMenu(FMenuItem.Menu).Close;
|
||||
begin
|
||||
if Assigned(TPopupMenu(FMenuItem.Menu).OnClose) then
|
||||
TPopupMenu(FMenuItem.Menu).OnClose(FMenuItem.Menu);
|
||||
Menus.ActivePopupMenu := nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TQtMenu.SlotDestroy; cdecl;
|
||||
|
Loading…
Reference in New Issue
Block a user