1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02:00

Bug1429: Fix Mac crash in 2nd Audacity process enabling VST plugins

This commit is contained in:
Paul Licameli
2016-06-27 23:38:42 -04:00
parent 6ab2ab10c7
commit f4aee7948f
2 changed files with 5 additions and 4 deletions

View File

@@ -770,7 +770,7 @@ void TrackList::Swap(TrackList &that)
TrackList::~TrackList()
{
Clear();
Clear(false);
}
void TrackList::RecalcPositions(TrackNodePointer node)
@@ -956,10 +956,11 @@ TrackNodePointer TrackList::Remove(Track *t)
return result;
}
void TrackList::Clear()
void TrackList::Clear(bool sendEvent)
{
ListOfTracks::clear();
UpdatedEvent(end());
if (sendEvent)
UpdatedEvent(end());
}
void TrackList::Select(Track * t, bool selected /* = true */ )