unset the window as invoking window of wxCurrentPopupMenu (which now exists in all ports and not just wxMSW-based ones) if it being destroyed before the menu itself (modified patch 1837214)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1046,9 +1046,8 @@ public:
|
||||
// show popup menu at the given position, generate events for the items
|
||||
// selected in it
|
||||
bool PopupMenu(wxMenu *menu, const wxPoint& pos = wxDefaultPosition)
|
||||
{ return DoPopupMenu(menu, pos.x, pos.y); }
|
||||
bool PopupMenu(wxMenu *menu, int x, int y)
|
||||
{ return DoPopupMenu(menu, x, y); }
|
||||
{ return PopupMenu(menu, pos.x, pos.y); }
|
||||
bool PopupMenu(wxMenu *menu, int x, int y);
|
||||
|
||||
// simply return the id of the selected item or wxID_NONE without
|
||||
// generating any events
|
||||
|
Reference in New Issue
Block a user