X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/628e8d444cd4c2a1d90b99c13931286b27fa7304..2ebef6d1741f0dec0fc42e2c22e1a36d9611422c:/src/gtk/toolbar.cpp?ds=sidebyside diff --git a/src/gtk/toolbar.cpp b/src/gtk/toolbar.cpp index aeb1dff251..3050ca96c2 100644 --- a/src/gtk/toolbar.cpp +++ b/src/gtk/toolbar.cpp @@ -502,7 +502,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase) break; case wxITEM_RADIO: radioGroup = GetRadioGroup(pos); - if (radioGroup) + if (!radioGroup) { // this is the first button in the radio button group, // it will be toggled automatically by GTK so bring the