When removing a track, remove its solo state

Fixes #1103
This commit is contained in:
Lukas W
2014-11-25 16:46:50 +01:00
parent 79f71a932d
commit 5d258cedf2

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();