X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdaf613add176525ed8b6cafaf278dfd80f85074..030c0beade81092da145abc94b2750cd11a3be0b:/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()