Saves two lines merging 2 conditionals in 1

This commit is contained in:
IanCaio
2020-06-26 22:38:07 -03:00
parent deb5d5c33f
commit 149ef0bd50

View File

@@ -2664,12 +2664,10 @@ void Track::toggleSolo()
( *it )->m_soloModel.setValue( false );
}
}
else if( !soloBefore )
else if( !soloBefore && (* it )->type() != AutomationTrack )
{
// Only restores the mute state if the track isn't an Automation Track
if( ( *it )->type() != AutomationTrack ){
( *it )->setMuted( ( *it )->m_mutedBeforeSolo );
}
( *it )->setMuted( ( *it )->m_mutedBeforeSolo );
}
}
}