mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-17 16:50:26 +02:00
Bug 328 (P2) followup : fix crash when exporting any file (caused by previous commits about this bug.
This commit is contained in:
parent
700a9c5263
commit
8d73c9b1fe
@ -646,14 +646,17 @@ bool Exporter::GetFilename()
|
|||||||
for (i = 0; i < gAudacityProjects.GetCount(); i++) {
|
for (i = 0; i < gAudacityProjects.GetCount(); i++) {
|
||||||
AliasedFileArray aliasedFiles;
|
AliasedFileArray aliasedFiles;
|
||||||
FindDependencies(gAudacityProjects[i], &aliasedFiles);
|
FindDependencies(gAudacityProjects[i], &aliasedFiles);
|
||||||
if (mFilename.GetFullPath() == aliasedFiles[i].mFileName.GetFullPath() &&
|
size_t j;
|
||||||
!mFilename.FileExists()) {
|
for (j = 0; j< aliasedFiles.GetCount(); j++) {
|
||||||
// Warn and return to the dialog
|
if (mFilename.GetFullPath() == aliasedFiles[j].mFileName.GetFullPath() &&
|
||||||
wxMessageBox(_("You are attempting to overwrite an aliased file that is missing.\n\
|
!mFilename.FileExists()) {
|
||||||
|
// Warn and return to the dialog
|
||||||
|
wxMessageBox(_("You are attempting to overwrite an aliased file that is missing.\n\
|
||||||
The file cannot be written because the path is needed to restore the original audio to the project.\n\
|
The file cannot be written because the path is needed to restore the original audio to the project.\n\
|
||||||
You can see the missing files in File > Check Dependencies.\n\
|
You can see the missing files in File > Check Dependencies.\n\
|
||||||
If you still wish to export, please choose a different filename."));
|
If you still wish to export, please choose a different filename."));
|
||||||
overwritingMissingAlias = true;
|
overwritingMissingAlias = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (overwritingMissingAlias)
|
if (overwritingMissingAlias)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user