QButtonGroup::addButton() automatically assigns a negative id when no id is given. This logic did not work out when a button with a positive id was added beforehand. Add a check to make sure to always return an auto-assigned negative id. Pick-to: 6.7 6.5 Fixes: QTBUG-129398 Change-Id: Ieadfa44c4b145184a5473713591f4c111a5dafa4 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 772d374ce715de9caaae4f026594d49f6da28dec) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%