]> git.saurik.com Git - wxWidgets.git/commitdiff
Send the calendar and date changed events to the datepicker ctrl first
authorRobin Dunn <robin@alldunn.com>
Mon, 18 Jun 2007 19:34:56 +0000 (19:34 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 18 Jun 2007 19:34:56 +0000 (19:34 +0000)
(not its parent) so they can be caught by dynamic event handlers
connected directly to the picker.

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

src/generic/datectlg.cpp

index 2626290a3bd53f0bad9608f55224c8b5f2ab3444..3c5d6933b8df3a945d1e6a1e403603de3f98c900 100644 (file)
@@ -199,10 +199,10 @@ public:
         cev.SetEventObject(datePicker);
         cev.SetId(datePicker->GetId());
         cev.SetDate(dt);
-        GetParent()->GetEventHandler()->ProcessEvent(cev);
+        datePicker->GetEventHandler()->ProcessEvent(cev);
 
         wxDateEvent event(datePicker, dt, wxEVT_DATE_CHANGED);
-        datePicker->GetParent()->GetEventHandler()->ProcessEvent(event);
+        datePicker->GetEventHandler()->ProcessEvent(event);
     }
 
 private: