simplify Enable()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2009-12-05 19:25:04 +00:00
parent 61aba4609a
commit b545684e13
11 changed files with 28 additions and 40 deletions

View File

@@ -428,8 +428,6 @@ void wxRadioBox::SetString(unsigned int item, const wxString& label)
bool wxRadioBox::Enable( bool enable )
{
bool isEnabled = IsEnabled();
if ( !wxControl::Enable( enable ) )
return false;
@@ -444,10 +442,8 @@ bool wxRadioBox::Enable( bool enable )
node = node->GetNext();
}
if (!isEnabled && enable)
{
if (enable)
GTKFixSensitivity();
}
return true;
}