]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dlgcmn.cpp
Restore ability to parse hours only with wxDateTime::ParseTime().
[wxWidgets.git] / src / common / dlgcmn.cpp
index 9289aa2d583fa882b8624d34fbd8e3210d2de9f5..1bc4d72667c24978a9f6913924f4a1fe34263bca 100644 (file)
@@ -425,7 +425,7 @@ bool wxDialogBase::EmulateButtonClickIfPresent(int id)
     if ( !btn || !btn->IsEnabled() || !btn->IsShown() )
         return false;
 
-    wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, id);
+    wxCommandEvent event(wxEVT_BUTTON, id);
     event.SetEventObject(btn);
     btn->GetEventHandler()->ProcessEvent(event);