From 5d258cedf261dcbc186e40d6feefde8d30ee97c1 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 f98b72eec..0f7080fa0 100644 --- a/src/core/TrackContainer.cpp +++ b/src/core/TrackContainer.cpp @@ -177,6 +177,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();