mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-03 15:43:50 +01:00
Bug 328 (P2) followup : fix crash when exporting any file (caused by previous commits about this bug.
This commit is contained in:
@@ -646,7 +646,9 @@ 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;
|
||||||
|
for (j = 0; j< aliasedFiles.GetCount(); j++) {
|
||||||
|
if (mFilename.GetFullPath() == aliasedFiles[j].mFileName.GetFullPath() &&
|
||||||
!mFilename.FileExists()) {
|
!mFilename.FileExists()) {
|
||||||
// Warn and return to the dialog
|
// Warn and return to the dialog
|
||||||
wxMessageBox(_("You are attempting to overwrite an aliased file that is missing.\n\
|
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;
|
overwritingMissingAlias = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (overwritingMissingAlias)
|
if (overwritingMissingAlias)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user