1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-17 08:17:59 +01:00

Bug1696: Drag-and-drop should import Midi file as a Note track

This commit is contained in:
Paul Licameli
2017-07-20 13:26:37 -04:00
parent bb4a1b862a
commit 69d6f36ef6
4 changed files with 18 additions and 5 deletions

View File

@@ -460,8 +460,12 @@ public:
mProject->HandleResize(); // Adjust scrollers for NEW track sizes.
} );
for (const auto &name : sortednames)
mProject->Import(name);
for (const auto &name : sortednames) {
if (Importer::IsMidi(name))
AudacityProject::DoImportMIDI(mProject, name);
else
mProject->Import(name);
}
mProject->ZoomAfterImport(nullptr);