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:
Tobias Doerffel
2008-01-26 00:43:42 +00:00
parent a7fb026159
commit 81434922d3

View File

@@ -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;
}
}