X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdaf613add176525ed8b6cafaf278dfd80f85074..d9f9aa2d8fcb956444588b2c19ffe8d4a3f5d2bb:/src/mac/radiobox.cpp?ds=sidebyside diff --git a/src/mac/radiobox.cpp b/src/mac/radiobox.cpp index 3c4c07e73e..905618716f 100644 --- a/src/mac/radiobox.cpp +++ b/src/mac/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()