mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-10 14:46:24 +01:00
When export fails, don't leave a partially written file.
This commit is contained in:
@@ -842,6 +842,11 @@ bool Exporter::ExportTracks()
|
|||||||
::wxRenameFile(mFilename.GetFullPath(), mActualName.GetFullPath());
|
::wxRenameFile(mFilename.GetFullPath(), mActualName.GetFullPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if ( ! success )
|
||||||
|
// Remove any new, and only partially written, file.
|
||||||
|
::wxRemoveFile(mFilename.GetFullPath());
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
auto result = mPlugins[mFormat]->Export(mProject,
|
auto result = mPlugins[mFormat]->Export(mProject,
|
||||||
|
|||||||
Reference in New Issue
Block a user