From ac55e228ce6778f95f2b6b23ff94123e57bb8a02 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Mon, 11 Jan 2021 12:24:14 -0600 Subject: [PATCH] Remove experimental attempt at FAT detection We'll just have to address each instance individually. --- src/ProjectFileIO.cpp | 5 ----- src/ProjectFileManager.cpp | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ProjectFileIO.cpp b/src/ProjectFileIO.cpp index de4f17c4e..226886a61 100644 --- a/src/ProjectFileIO.cpp +++ b/src/ProjectFileIO.cpp @@ -326,11 +326,6 @@ bool ProjectFileIO::OpenConnection(FilePath fileName /* = {} */) } } - if (FileNames::FATFilesystemDenied(fileName, XO("Project resides on FAT formatted drive."))) - { - return false; - } - // Pass weak_ptr to project into DBConnection constructor curConn = std::make_unique( mProject.shared_from_this(), mpErrors, [this]{ OnCheckpointFailure(); } ); diff --git a/src/ProjectFileManager.cpp b/src/ProjectFileManager.cpp index e8f0d7bd1..614bc89ff 100644 --- a/src/ProjectFileManager.cpp +++ b/src/ProjectFileManager.cpp @@ -858,6 +858,13 @@ void ProjectFileManager::OpenFile(const FilePath &fileNameArg, bool addtohistory auto fileName = PlatformCompatibility::ConvertSlashInFileName( PlatformCompatibility::GetLongFileName(fileNameArg)); + if (FileNames::FATFilesystemDenied(fileName, + XO("Project resides on FAT formatted drive.\n" + "Copy it to another drive to open it."))) + { + return; + } + // Make sure it isn't already open. // Vaughan, 2011-03-25: This was done previously in AudacityProject::OpenFiles() // and AudacityApp::MRUOpen(), but if you open an aup file by double-clicking it