]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/xrc/myframe.cpp
fixes potential crash under gatekeeper
[wxWidgets.git] / samples / xrc / myframe.cpp
index 509ea31833d05629dc9e3f2bf21af5cf45685f95..3a2dfc0dac6acb7dbfebb9b1e5178cfdcbe8d5ce 100644 (file)
@@ -255,7 +255,7 @@ void MyFrame::OnControlsToolOrMenuCommand(wxCommandEvent& WXUNUSED(event))
 #if wxUSE_ANIMATIONCTRL
     // dynamically connect our event handler for the "clicked" event of the "play" button
     // in the animation ctrl page of our dialog
 #if wxUSE_ANIMATIONCTRL
     // dynamically connect our event handler for the "clicked" event of the "play" button
     // in the animation ctrl page of our dialog
-    dlg.Connect(XRCID("controls_animation_button_play"), wxEVT_COMMAND_BUTTON_CLICKED,
+    dlg.Connect(XRCID("controls_animation_button_play"), wxEVT_BUTTON,
                 wxCommandEventHandler(MyFrame::OnAnimationCtrlPlay));
 #endif
 
                 wxCommandEventHandler(MyFrame::OnAnimationCtrlPlay));
 #endif