X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fc8b9a4fe462ee36b4a120303588a04d1b8e7a1..2efd54a41b12a5977713c837c585d89f35a13d14:/src/gtk/radiobox.cpp?ds=sidebyside diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 18f02bf683..08368f2459 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -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; } @@ -608,7 +604,9 @@ GdkWindow *wxRadioBox::GTKGetWindow(wxArrayGdkWindows& windows) const { GtkWidget *button = GTK_WIDGET( node->GetData()->button ); - windows.push_back(button->window); + // don't put NULL pointers in the 'windows' array! + if (button->window) + windows.push_back(button->window); node = node->GetNext(); }