mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 09:20:16 +01:00
Bug2127: Record, Pause, Record, Pause, Close button: shouldn't crash
This commit is contained in:
@@ -1183,7 +1183,7 @@ bool TrackList::ApplyPendingTracks()
|
||||
return result;
|
||||
}
|
||||
|
||||
std::shared_ptr<const Track> Track::SubstitutePendingChangedTrack() const
|
||||
std::shared_ptr<Track> Track::SubstitutePendingChangedTrack()
|
||||
{
|
||||
// Linear search. Tracks in a project are usually very few.
|
||||
auto pList = mList.lock();
|
||||
@@ -1199,6 +1199,11 @@ std::shared_ptr<const Track> Track::SubstitutePendingChangedTrack() const
|
||||
return SharedPointer();
|
||||
}
|
||||
|
||||
std::shared_ptr<const Track> Track::SubstitutePendingChangedTrack() const
|
||||
{
|
||||
return const_cast<Track*>(this)->SubstitutePendingChangedTrack();
|
||||
}
|
||||
|
||||
std::shared_ptr<const Track> Track::SubstituteOriginalTrack() const
|
||||
{
|
||||
auto pList = mList.lock();
|
||||
|
||||
Reference in New Issue
Block a user