diff options
Diffstat (limited to 'views/controls/button/native_button_gtk.cc')
-rw-r--r-- | views/controls/button/native_button_gtk.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/views/controls/button/native_button_gtk.cc b/views/controls/button/native_button_gtk.cc index 1fc7fac..4a54fc5 100644 --- a/views/controls/button/native_button_gtk.cc +++ b/views/controls/button/native_button_gtk.cc @@ -245,11 +245,15 @@ void NativeRadioButtonGtk::ViewHierarchyChanged(bool is_add, "radio-button views."; continue; } - // Join the group + // Join the group, if the peer's native wrapper is present. + // A button without wrapper will be added to the group in + // its own ViewHierachyChanged. NativeButtonWrapper* wrapper = static_cast<RadioButton*>(*i)->native_wrapper(); - SetGroupFrom(wrapper); - break; + if (wrapper) { + SetGroupFrom(wrapper); + break; + } } } } |