1
0
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:
Leland Lucius
2015-05-29 13:02:17 -05:00
parent 5c67bc38b3
commit e5f6a44656
6 changed files with 40 additions and 29 deletions

2
src/export/Export.cpp Normal file → Executable file
View 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);

View File

@@ -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());
}