1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

AUP3: UP-41 Opening a Saved project can get a "Project Recovered" message

This commit is contained in:
Leland Lucius 2020-07-27 16:50:08 -05:00
parent e045da472a
commit 71ee696562

View File

@ -363,8 +363,10 @@ void ProjectFileIO::DiscardConnection()
if (mPrevTemporary)
{
// This is just a safety check.
wxFileName temp(FileNames::TempDir());
if (temp == wxPathOnly(mPrevFileName))
wxFileName temp(FileNames::TempDir(), wxT(""));
wxFileName file(mPrevFileName);
file.SetFullName(wxT(""));
if (file == temp)
{
wxRemoveFile(mPrevFileName);
}