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:
parent
e045da472a
commit
71ee696562
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user