X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b88a837ba75928cd3835a6b97ae2bf5ad983a6e..7721116699a08609eeb5667b0c020b145e1cc5eb:/src/gtk/radiobox.cpp diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index a0e73a219d..3467b72318 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -14,12 +14,6 @@ #include "wx/radiobox.h" -#ifndef WX_PRECOMP - #include "wx/log.h" - #include "wx/frame.h" - #include "wx/dialog.h" -#endif - #if wxUSE_TOOLTIPS #include "wx/tooltip.h" #endif @@ -428,8 +422,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 +436,8 @@ bool wxRadioBox::Enable( bool enable ) node = node->GetNext(); } - if (!isEnabled && enable) - { + if (enable) GTKFixSensitivity(); - } return true; }