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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user