From 862e960764d9bc219e8b2eb2d7ec804a2972ce5c Mon Sep 17 00:00:00 2001 From: Steve Daulton Date: Mon, 13 Apr 2015 17:12:49 +0100 Subject: [PATCH] Update Import.cpp Replace misleading warning when user attempts to import an AUP file. --- src/import/Import.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/import/Import.cpp b/src/import/Import.cpp index 60a767be5..9ab903b0e 100644 --- a/src/import/Import.cpp +++ b/src/import/Import.cpp @@ -701,6 +701,13 @@ int Importer::Import(wxString fName, return 0; } + // Audacity project + if (extension.IsSameAs(wxT("aup"), false)) { + errorMessage.Printf(_("\"%s\" is an Audacity Project file. \nUse the 'File > Open' command to open Audacity Projects."), fName.c_str()); + pProj->mbBusyImporting = false; + return 0; + } + // we were not able to recognize the file type errorMessage.Printf(_("Audacity did not recognize the type of the file '%s'.\nIf it is uncompressed, try importing it using \"Import Raw\"."),fName.c_str()); }