]> git.saurik.com Git - wxWidgets.git/commitdiff
Send the selected item in wxDVC SELECTION_CHANGED event in OSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Nov 2009 18:17:38 +0000 (18:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Nov 2009 18:17:38 +0000 (18:17 +0000)
This event was perfectly useless as it didn't indicate which item was
selected. Do set the selected item now, just as the generic and GTK versions
do.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/dataview.mm

index bff2560e350192ce2876e7767d65c3e90e0b93a1..3a244c6829c2dcb894759228d5ad9b52ac52ca30 100644 (file)
@@ -1751,7 +1751,8 @@ outlineView:(NSOutlineView*)outlineView
     wxDataViewEvent event(wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,dvc->GetId());
 
     event.SetEventObject(dvc);
-    event.SetModel      (dvc->GetModel());
+    event.SetModel(dvc->GetModel());
+    event.SetItem(dvc->GetSelection());
     dvc->GetEventHandler()->ProcessEvent(event);
 }