1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +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

@@ -326,7 +326,7 @@ public:
for (const auto &name : sortednames) {
#ifdef USE_MIDI
if (FileNames::IsMidi(name))
FileActions::DoImportMIDI(mProject, name);
FileActions::DoImportMIDI( *mProject, name);
else
#endif
ProjectFileManager::Get( *mProject ).Import(name);