mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-05 06:01:04 +01:00
Fix for bug #983
Now we know why the "automatically add extension" stuff was commented on in the FileDialog at least. :-)
This commit is contained in:
2
src/export/Export.cpp
Normal file → Executable file
2
src/export/Export.cpp
Normal file → Executable file
@@ -550,7 +550,7 @@ bool Exporter::GetFilename()
|
||||
mFilename.GetPath(),
|
||||
mFilename.GetFullName(),
|
||||
maskString,
|
||||
wxFD_SAVE | wxRESIZE_BORDER);
|
||||
wxFD_SAVE | wxRESIZE_BORDER | FD_NO_ADD_EXTENSION);
|
||||
mDialog = &fd;
|
||||
|
||||
fd.SetFilterIndex(mFilterIndex);
|
||||
|
||||
@@ -325,7 +325,7 @@ public:
|
||||
Tags *metadata = NULL,
|
||||
int subformat = 0);
|
||||
// optional
|
||||
wxString GetExtension(int index = 0);
|
||||
wxString GetExtension(int index = WXSIZEOF(kFormats));
|
||||
|
||||
private:
|
||||
|
||||
@@ -911,7 +911,7 @@ bool ExportPCM::DisplayOptions(wxWindow *parent, int format)
|
||||
|
||||
wxString ExportPCM::GetExtension(int index)
|
||||
{
|
||||
if (index == 0) {
|
||||
if (index == WXSIZEOF(kFormats)) {
|
||||
// get extension libsndfile thinks is correct for currently selected format
|
||||
return sf_header_extension(ReadExportFormatPref());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user