When removing a track, remove its solo state

Fixes #1103
This commit is contained in:
Lukas W committed 2014-11-26 01:09:33 +01:00
1 parent e7cbc55c69
commit 394d8da286
1 file changed
+4
+4
View File
@@ -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();