X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb719f2e29bd20effa3259d2d7dead9fd857442c..739e35e4fba5df59532ef7e62bcfc8ebbcd72bb5:/src/common/tbarbase.cpp?ds=sidebyside diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index e3b306923c..69f106b9ee 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -385,7 +385,10 @@ void wxToolBarBase::UnToggleRadioGroup(wxToolBarToolBase *tool) if ( !tool->IsButton() || tool->GetKind() != wxITEM_RADIO ) break; - tool->Toggle(false); + if ( tool->Toggle(false) ) + { + DoToggleTool(tool, false); + } nodeNext = nodeNext->GetNext(); } @@ -398,7 +401,10 @@ void wxToolBarBase::UnToggleRadioGroup(wxToolBarToolBase *tool) if ( !tool->IsButton() || tool->GetKind() != wxITEM_RADIO ) break; - tool->Toggle(false); + if ( tool->Toggle(false) ) + { + DoToggleTool(tool, false); + } nodePrev = nodePrev->GetPrevious(); }