#16 If solo is enabled, the fader does not work anymore

This commit is contained in:
Volker Fischer 2014-01-18 07:49:47 +00:00
parent 2c443c7aef
commit 27c5f29b1a

View file

@ -191,8 +191,10 @@ void CChannelFader::SetFaderLevel ( const int iLevel )
void CChannelFader::SendFaderLevelToServer ( const int iLevel ) void CChannelFader::SendFaderLevelToServer ( const int iLevel )
{ {
// if mute flag is set or other channel is on solo, do not apply the new // if mute flag is set or other channel is on solo, do not apply the new
// fader value // fader value (exception: we are on solo, in that case we ignore the
if ( ( pcbMute->checkState() == Qt::Unchecked ) && !bOtherChannelIsSolo ) // "other channel is on solo" flag)
if ( ( pcbMute->checkState() == Qt::Unchecked ) &&
( !bOtherChannelIsSolo || IsSolo() ) )
{ {
// emit signal for new fader gain value // emit signal for new fader gain value
emit gainValueChanged ( CalcFaderGain ( iLevel ) ); emit gainValueChanged ( CalcFaderGain ( iLevel ) );