update buttons after changing button-group's value
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms-mv@675 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -219,6 +219,10 @@ void automatableButtonGroup::activateButton( automatableButton * _btn )
|
||||
m_buttons.indexOf( _btn ) != -1 )
|
||||
{
|
||||
model()->setValue( m_buttons.indexOf( _btn ) );
|
||||
foreach( automatableButton * btn, m_buttons )
|
||||
{
|
||||
btn->update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,7 +244,7 @@ void automatableButtonGroup::updateButtons( void )
|
||||
int i = 0;
|
||||
foreach( automatableButton * btn, m_buttons )
|
||||
{
|
||||
btn->setValue( i == value() );
|
||||
btn->model()->setValue( i == value() );
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user