X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e53b3d16de127872e39bf276f7e616b32f161645..125e7c11c16f23daa4c594f3b8d90194099c2394:/src/osx/radiobut_osx.cpp?ds=sidebyside diff --git a/src/osx/radiobut_osx.cpp b/src/osx/radiobut_osx.cpp index f091b9e039..f1bd3fa49b 100644 --- a/src/osx/radiobut_osx.cpp +++ b/src/osx/radiobut_osx.cpp @@ -97,7 +97,7 @@ void wxRadioButton::SetValue(bool val) bool wxRadioButton::GetValue() const { - return m_peer->GetValue(); + return m_peer->GetValue() != 0; } void wxRadioButton::Command(wxCommandEvent& event) @@ -106,11 +106,14 @@ void wxRadioButton::Command(wxCommandEvent& event) ProcessCommand( event ); } -bool wxRadioButton::HandleClicked( double timestampsec ) +bool wxRadioButton::OSXHandleClicked( double WXUNUSED(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(); @@ -157,7 +160,7 @@ wxRadioButton *wxRadioButton::AddInCycle(wxRadioButton *cycle) } void wxRadioButton::RemoveFromCycle() -{ +{ if ((m_cycle == NULL) || (m_cycle == this)) return;