mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 00:29:41 +02:00
Fix for bug #931
This commit is contained in:
parent
66084b65ef
commit
26500dcffc
@ -146,6 +146,7 @@ void ExportPlugin::SetDescription(const wxString & description, int index)
|
||||
void ExportPlugin::AddExtension(const wxString &extension,int index)
|
||||
{
|
||||
mFormatInfos[index].mExtensions.Add(extension);
|
||||
wxLogDebug(wxT("index %d %s"), index, extension.c_str());
|
||||
}
|
||||
|
||||
void ExportPlugin::SetExtensions(const wxArrayString & extensions, int index)
|
||||
@ -196,17 +197,14 @@ wxString ExportPlugin::GetMask(int index)
|
||||
|
||||
wxString mask = GetDescription(index) + wxT("|");
|
||||
|
||||
// Build the mask, but cater to the Mac FileDialog and put the default
|
||||
// extension at the end of the mask.
|
||||
// Build the mask
|
||||
wxString ext = GetExtension(index);
|
||||
wxArrayString exts = GetExtensions(index);
|
||||
for (size_t i = 0; i < exts.GetCount(); i++) {
|
||||
if (ext != exts[i]) {
|
||||
mask += wxT("*.") + exts[i] + wxT(";");
|
||||
}
|
||||
mask += wxT("*.") + exts[i] + wxT(";");
|
||||
}
|
||||
|
||||
return mask + wxT("*.") + ext;
|
||||
return mask;
|
||||
}
|
||||
|
||||
int ExportPlugin::GetMaxChannels(int index)
|
||||
@ -546,7 +544,7 @@ bool Exporter::GetFilename()
|
||||
|
||||
mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), ::wxGetCwd()));
|
||||
mFilename.SetName(mProject->GetName());
|
||||
|
||||
wxLogDebug(wxT("mask %s"), maskString.c_str());
|
||||
while (true) {
|
||||
|
||||
FileDialog fd(mProject,
|
||||
|
Loading…
x
Reference in New Issue
Block a user