]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/radiobox.cpp
use GetText() instead of GetText(wxString&), made some methods inline
[wxWidgets.git] / src / mac / radiobox.cpp
index 3c4c07e73e7a3a1ce8a6077f9f6d939bee8f1e29..905618716f44a98ec8c67a70b9337cf387541af9 100644 (file)
@@ -38,12 +38,15 @@ END_EVENT_TABLE()
 
 void wxRadioBox::OnRadioButton( wxCommandEvent &outer )
 {
 
 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);
     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()
 }
 
 wxRadioBox::wxRadioBox()