mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-27 07:43:50 +01:00
FileExtension passed to BuildCleanFileName: no leading dot...
... consistently with the comment describing the type alias FileExtension
This commit is contained in:
@@ -54,8 +54,7 @@ void DoExport( AudacityProject &project, const FileExtension & Format )
|
||||
if (!bPromptingRequired) {
|
||||
|
||||
// We're in batch mode, and we have an mFileName and Format.
|
||||
wxString extension = ".";
|
||||
extension += Format;
|
||||
wxString extension = Format;
|
||||
extension.MakeLower();
|
||||
|
||||
filename =
|
||||
@@ -73,7 +72,7 @@ void DoExport( AudacityProject &project, const FileExtension & Format )
|
||||
number.Printf("%03i", counter);
|
||||
// So now the name has a number in it too.
|
||||
filename = MacroCommands::BuildCleanFileName(
|
||||
project.GetFileName(), number + extension);
|
||||
project.GetFileName() + number, extension);
|
||||
bPromptingRequired = wxFileExists(filename);
|
||||
}
|
||||
// If we've run out of alternative names, we will fall back to prompting
|
||||
|
||||
Reference in New Issue
Block a user