1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-07 12:12:23 +01:00

Separate versions of DoImportMIDI that do and don't assume a project

This commit is contained in:
Paul Licameli
2019-06-24 22:18:23 -04:00
parent ff2cf496cd
commit 8eca219d57
4 changed files with 35 additions and 22 deletions

View File

@@ -1303,7 +1303,7 @@ void ProjectFileManager::OpenFile(const FilePath &fileNameArg, bool addtohistory
{
#ifdef USE_MIDI
if (FileNames::IsMidi(fileName))
FileActions::DoImportMIDI( &project, fileName );
FileActions::DoImportMIDI( project, fileName );
else
#endif
Import( fileName );