From 149ef0bd50207408b8920446ed34683e72daa2fd Mon Sep 17 00:00:00 2001 From: IanCaio Date: Fri, 26 Jun 2020 22:38:07 -0300 Subject: [PATCH] Saves two lines merging 2 conditionals in 1 --- src/core/Track.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/Track.cpp b/src/core/Track.cpp index 5c44914fe..502741588 100644 --- a/src/core/Track.cpp +++ b/src/core/Track.cpp @@ -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 ); } } }