From e09e6951265e3b41ad30293aae96ea3cca6da27a Mon Sep 17 00:00:00 2001 From: IanCaio Date: Fri, 26 Jun 2020 19:56:42 -0300 Subject: [PATCH] Changes the toggleSolo method - Changes the toggleSolo method so it doesn't mute automation tracks (keeps their original state) --- src/core/Track.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/Track.cpp b/src/core/Track.cpp index 15625d87c..6c47c4349 100644 --- a/src/core/Track.cpp +++ b/src/core/Track.cpp @@ -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 );