1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-06 19:52:19 +01:00

Move DoImportMidi out of FileMenus

This commit is contained in:
Paul Licameli
2019-06-24 22:31:11 -04:00
parent 8eca219d57
commit 2d11e6bda9
7 changed files with 64 additions and 68 deletions

View File

@@ -24,7 +24,6 @@ Paul Licameli split from AudacityProject.cpp
#include "DirManager.h"
#include "FileNames.h"
#include "Legacy.h"
#include "Menus.h"
#include "PlatformCompatibility.h"
#include "Project.h"
#include "ProjectFileIO.h"
@@ -47,6 +46,7 @@ Paul Licameli split from AudacityProject.cpp
#include "blockfile/ODDecodeBlockFile.h"
#include "export/Export.h"
#include "import/Import.h"
#include "import/ImportMIDI.h"
#include "commands/CommandContext.h"
#include "ondemand/ODComputeSummaryTask.h"
#include "ondemand/ODDecodeFlacTask.h"
@@ -1303,7 +1303,7 @@ void ProjectFileManager::OpenFile(const FilePath &fileNameArg, bool addtohistory
{
#ifdef USE_MIDI
if (FileNames::IsMidi(fileName))
FileActions::DoImportMIDI( project, fileName );
DoImportMIDI( project, fileName );
else
#endif
Import( fileName );