mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 09:20:16 +01:00
static TrackList::Get()...
... not member function of AudacityProject
This commit is contained in:
@@ -44,7 +44,7 @@ static ProjectFileIORegistry::Entry registerFactory{
|
||||
wxT( "timetrack" ),
|
||||
[]( AudacityProject &project ){
|
||||
auto &trackFactory = *project.GetTrackFactory();
|
||||
auto &tracks = *project.GetTracks();
|
||||
auto &tracks = TrackList::Get( project );
|
||||
return tracks.Add(trackFactory.NewTimeTrack());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user