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:
parent
6ab2ab10c7
commit
f4aee7948f
@ -770,7 +770,7 @@ void TrackList::Swap(TrackList &that)
|
||||
|
||||
TrackList::~TrackList()
|
||||
{
|
||||
Clear();
|
||||
Clear(false);
|
||||
}
|
||||
|
||||
void TrackList::RecalcPositions(TrackNodePointer node)
|
||||
@ -956,9 +956,10 @@ TrackNodePointer TrackList::Remove(Track *t)
|
||||
return result;
|
||||
}
|
||||
|
||||
void TrackList::Clear()
|
||||
void TrackList::Clear(bool sendEvent)
|
||||
{
|
||||
ListOfTracks::clear();
|
||||
if (sendEvent)
|
||||
UpdatedEvent(end());
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user