1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +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 */ )

View File

@ -448,7 +448,7 @@ class TrackList final : public wxEvtHandler, public ListOfTracks
TrackNodePointer Remove(Track *t);
/// Make the list empty
void Clear();
void Clear(bool sendEvent = true);
/** Select a track, and if it is linked to another track, select it, too. */
void Select(Track * t, bool selected = true);