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