From 394d8da286ca01231c4e3fe7367e32a213792aa1 Mon Sep 17 00:00:00 2001 From: Lukas W Date: Tue, 25 Nov 2014 16:46:50 +0100 Subject: [PATCH] When removing a track, remove its solo state Fixes #1103 --- src/core/TrackContainer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/TrackContainer.cpp b/src/core/TrackContainer.cpp index f2d065681..33a8aebeb 100644 --- a/src/core/TrackContainer.cpp +++ b/src/core/TrackContainer.cpp @@ -175,6 +175,10 @@ void TrackContainer::removeTrack( track * _track ) int index = m_tracks.indexOf( _track ); if( index != -1 ) { + // If the track is solo, all other tracks are muted. Change this before removing the solo track: + if (_track->isSolo()) { + _track->setSolo(false); + } m_tracksMutex.lockForWrite(); m_tracks.remove( index ); m_tracksMutex.unlock();