When removing a track, remove its solo state

Fixes #1103
This commit is contained in:
Lukas W committed 2014-11-25 16:47:11 +01:00
1 parent 79f71a932d
commit 5d258cedf2
1 file changed
+4
+4
View File
@@ -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();