]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/radiobut_osx.cpp
fix memory leak while testing for correct Clone() implementation (closes #10304)
[wxWidgets.git] / src / osx / radiobut_osx.cpp
index f091b9e039512cd52bbc025899df006905144c1d..a2908a0cf2d6f8382e1e14b2d98dd34d9cdb3e96 100644 (file)
@@ -108,9 +108,12 @@ void wxRadioButton::Command(wxCommandEvent& event)
 
 bool wxRadioButton::HandleClicked( 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();