1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-27 07:43:50 +01:00

Eliminate some uses of GetActiveProject...

... where there was already a project at hand
This commit is contained in:
Paul Licameli
2019-05-21 10:53:09 -04:00
parent d23569ca10
commit 83f7bc6b5c
5 changed files with 12 additions and 13 deletions

View File

@@ -1029,10 +1029,10 @@ void OnScoreAlign(const CommandContext &context)
params.mAudioStart, params.mAudioEnd) );
} else if (result == SA_CANCEL) {
// wrong way to recover...
//GetActiveProject()->OnUndo(); // recover any changes to note track
//project.OnUndo(); // recover any changes to note track
return; // no message when user cancels alignment
} else {
//GetActiveProject()->OnUndo(); // recover any changes to note track
//project.OnUndo(); // recover any changes to note track
AudacityMessageBox( XO("Internal error reported by alignment process.") );
}
}