diff --git a/src/qt/radiobox.cpp b/src/qt/radiobox.cpp index 4e58afed50..b2093e3596 100644 --- a/src/qt/radiobox.cpp +++ b/src/qt/radiobox.cpp @@ -116,10 +116,12 @@ static void AddChoices( QButtonGroup *qtButtonGroup, QBoxLayout *qtBoxLayout, in Button *btn; bool isFirst = true; + int id = 0; + while ( count-- > 0 ) { btn = new Button( wxQtConvertString( *choices++ )); - qtButtonGroup->addButton( btn ); + qtButtonGroup->addButton( btn, id++ ); qtBoxLayout->addWidget( btn ); if ( isFirst )