mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
AUP3: Write doc to autosave table when compacting temporary projects
This keeps them temporary if they need to be recovered.
This commit is contained in:
parent
416d3f27de
commit
12f0c6ee17
@ -896,8 +896,12 @@ Connection ProjectFileIO::CopyTo(const FilePath &destpath,
|
||||
}
|
||||
}
|
||||
|
||||
// Write the project doc
|
||||
if (!WriteDoc("project", doc, "outbound"))
|
||||
// Write the doc.
|
||||
//
|
||||
// If we're compacting a temporary project (user initiated from the File
|
||||
// menu), then write the doc to the "autosave" table since temporary
|
||||
// projects do not have a "project" doc.
|
||||
if (!WriteDoc(mTemporary ? "autosave" : "project", doc, "outbound"))
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user