From 3e39771c536c326ac7d06b1bb07d74a137f7b87b Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 2 Aug 2017 11:18:05 -0400 Subject: [PATCH] MIDI imports, like other imports, are put into recent files list --- src/Menus.cpp | 3 +++ src/Project.cpp | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Menus.cpp b/src/Menus.cpp index 1de329500..f92d6bc68 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -6827,6 +6827,9 @@ AudacityProject *AudacityProject::DoImportMIDI( pProject->ZoomAfterImport(pTrack); pNewProject = nullptr; + + wxGetApp().AddFileToHistory(fileName); + return pProject; } else diff --git a/src/Project.cpp b/src/Project.cpp index 903274565..241da0d43 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -3075,7 +3075,10 @@ void AudacityProject::OpenFile(const wxString &fileNameArg, bool addtohistory) // FIXME: //v Surely we could be smarter about this, like checking much earlier that this is a .aup file. if (temp.Mid(0, 6) != wxT("