X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdaf613add176525ed8b6cafaf278dfd80f85074..544421165fa7f656d23b69801443b7aa69f71db8:/src/mac/radiobox.cpp 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()