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,7 +646,9 @@ bool Exporter::GetFilename()
|
||||
for (i = 0; i < gAudacityProjects.GetCount(); i++) {
|
||||
AliasedFileArray aliasedFiles;
|
||||
FindDependencies(gAudacityProjects[i], &aliasedFiles);
|
||||
if (mFilename.GetFullPath() == aliasedFiles[i].mFileName.GetFullPath() &&
|
||||
size_t j;
|
||||
for (j = 0; j< aliasedFiles.GetCount(); j++) {
|
||||
if (mFilename.GetFullPath() == aliasedFiles[j].mFileName.GetFullPath() &&
|
||||
!mFilename.FileExists()) {
|
||||
// Warn and return to the dialog
|
||||
wxMessageBox(_("You are attempting to overwrite an aliased file that is missing.\n\
|
||||
@ -656,6 +658,7 @@ If you still wish to export, please choose a different filename."));
|
||||
overwritingMissingAlias = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (overwritingMissingAlias)
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user