1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 00:20:06 +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:25:21 -05:00
parent da045082e5
commit e045da472a

View File

@ -2036,8 +2036,10 @@ bool ProjectFileIO::CloseProject()
if (mTemporary)
{
// This is just a safety check.
wxFileName temp(FileNames::TempDir());
if (temp == wxPathOnly(filename))
wxFileName temp(FileNames::TempDir(), wxT(""));
wxFileName file(filename);
file.SetFullName(wxT(""));
if (file == temp)
{
wxRemoveFile(filename);
}