From: Robert Roebling Date: Mon, 19 May 2008 12:46:44 +0000 (+0000) Subject: Set EventObject in event X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bd1fa9c4aeee2f8233424f01275cb7c0204c1b66 Set EventObject in event git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/databrow.cpp b/src/mac/carbon/databrow.cpp index a201185f00..ccd171b8fd 100644 --- a/src/mac/carbon/databrow.cpp +++ b/src/mac/carbon/databrow.cpp @@ -650,7 +650,8 @@ void wxMacDataViewDataBrowserListViewControl::DataBrowserGetContextualMenuProc(M *helpItemString = NULL; // create information for a context menu event: wxDataViewEvent dataViewEvent(wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU,dataViewCtrlPtr->GetId()); - + + dataViewEvent.SetEventObject(dataViewCtrlPtr); dataViewEvent.SetModel(dataViewCtrlPtr->GetModel()); // get the item information; // theoretically more than one ID can be returned but the event can only handle one item, therefore all item related data is using the data of the first item in the array: