1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 16:37:12 +01:00

static TrackList::Get()...

... not member function of AudacityProject
This commit is contained in:
Paul Licameli
2019-05-06 19:00:10 -04:00
parent 1ed9338e6f
commit 14ab93a01f
73 changed files with 553 additions and 482 deletions

View File

@@ -892,7 +892,7 @@ bool AudacityApp::MRUOpen(const FilePath &fullPathStr) {
// there are no tracks, but there's an Undo history, etc, then
// bad things can happen, including data files moving to the NEW
// project directory, etc.
if (proj && (proj->GetDirty() || !proj->GetTracks()->empty()))
if (proj && (proj->GetDirty() || !TrackList::Get( *proj ).empty()))
proj = nullptr;
// This project is clean; it's never been touched. Therefore
// all relevant member variables are in their initial state,
@@ -1073,7 +1073,7 @@ bool AudacityApp::OnExceptionInMainLoop()
pProject->RollbackState();
// Forget pending changes in the TrackList
pProject->GetTracks()->ClearPendingTracks();
TrackList::Get( *pProject ).ClearPendingTracks();
pProject->RedrawProject();
}