]> git.saurik.com Git - wxWidgets.git/commitdiff
Set EventObject in event
authorRobert Roebling <robert@roebling.de>
Mon, 19 May 2008 12:46:44 +0000 (12:46 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 19 May 2008 12:46:44 +0000 (12:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/databrow.cpp

index a201185f005347eb0bdfbf9ba4930492e9b80a3d..ccd171b8fd59bd9bdb6f2572b98921beef8424ed 100644 (file)
@@ -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: