]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/radiobut_osx.cpp
Forgot header with OSX prefix
[wxWidgets.git] / src / osx / radiobut_osx.cpp
index f091b9e039512cd52bbc025899df006905144c1d..1ffcc72750547a63c1cb26c1cf65883f9288d9d6 100644 (file)
@@ -106,11 +106,14 @@ void wxRadioButton::Command(wxCommandEvent& event)
     ProcessCommand( event );
 }
 
-bool wxRadioButton::HandleClicked( double timestampsec )
+bool wxRadioButton::OSXHandleClicked( double timestampsec )
 {
-    // if already set -> no action
-    if (GetValue())
-        return true;
+    if ( !m_peer->ButtonClickDidStateChange() )
+    {
+        // if already set -> no action
+        if (GetValue())
+            return true;
+    }
 
     wxRadioButton *cycle;
     cycle = this->NextInCycle();