Remove experimental attempt at FAT detection

We'll just have to address each instance individually.
This commit is contained in:
Leland Lucius 2021-01-11 12:24:14 -06:00
parent c7a8b824a1
commit ac55e228ce
2 changed files with 7 additions and 5 deletions

View File

@ -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<DBConnection>(
mProject.shared_from_this(), mpErrors, [this]{ OnCheckpointFailure(); } );

View File

@ -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