Changes the toggleSolo method

- Changes the toggleSolo method so it doesn't mute automation tracks (keeps their original state)
This commit is contained in:
IanCaio
2020-06-26 19:56:42 -03:00
parent 5d7e6720e1
commit e09e695126

View File

@@ -2653,7 +2653,14 @@ void Track::toggleSolo()
{
( *it )->m_mutedBeforeSolo = ( *it )->isMuted();
}
( *it )->setMuted( *it == this ? false : true );
// Don't mute AutomationTracks (keep their original state)
if( *it == this ){
( *it )->setMuted( false );
} else {
if( ( *it )->type() != AutomationTrack ){
( *it )->setMuted( true );
}
}
if( *it != this )
{
( *it )->m_soloModel.setValue( false );