X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdaf613add176525ed8b6cafaf278dfd80f85074..f21b2fd89d02837dfd0d195f8ff0f3f5640af017:/src/mac/carbon/radiobox.cpp diff --git a/src/mac/carbon/radiobox.cpp b/src/mac/carbon/radiobox.cpp index 3c4c07e73e..905618716f 100644 --- a/src/mac/carbon/radiobox.cpp +++ b/src/mac/carbon/radiobox.cpp @@ -38,12 +38,15 @@ END_EVENT_TABLE() void wxRadioBox::OnRadioButton( wxCommandEvent &outer ) { + if ( outer.IsChecked() ) + { wxCommandEvent event(wxEVT_COMMAND_RADIOBOX_SELECTED, m_windowId); int i = GetSelection() ; event.SetInt( i ); event.SetString( GetString( i ) ); event.SetEventObject( this ); ProcessCommand(event); + } } wxRadioBox::wxRadioBox()