mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-09 17:07:43 +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)
|
void ExportPlugin::AddExtension(const wxString &extension,int index)
|
||||||
{
|
{
|
||||||
mFormatInfos[index].mExtensions.Add(extension);
|
mFormatInfos[index].mExtensions.Add(extension);
|
||||||
|
wxLogDebug(wxT("index %d %s"), index, extension.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExportPlugin::SetExtensions(const wxArrayString & extensions, int index)
|
void ExportPlugin::SetExtensions(const wxArrayString & extensions, int index)
|
||||||
@ -196,17 +197,14 @@ wxString ExportPlugin::GetMask(int index)
|
|||||||
|
|
||||||
wxString mask = GetDescription(index) + wxT("|");
|
wxString mask = GetDescription(index) + wxT("|");
|
||||||
|
|
||||||
// Build the mask, but cater to the Mac FileDialog and put the default
|
// Build the mask
|
||||||
// extension at the end of the mask.
|
|
||||||
wxString ext = GetExtension(index);
|
wxString ext = GetExtension(index);
|
||||||
wxArrayString exts = GetExtensions(index);
|
wxArrayString exts = GetExtensions(index);
|
||||||
for (size_t i = 0; i < exts.GetCount(); i++) {
|
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)
|
int ExportPlugin::GetMaxChannels(int index)
|
||||||
@ -546,7 +544,7 @@ bool Exporter::GetFilename()
|
|||||||
|
|
||||||
mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), ::wxGetCwd()));
|
mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), ::wxGetCwd()));
|
||||||
mFilename.SetName(mProject->GetName());
|
mFilename.SetName(mProject->GetName());
|
||||||
|
wxLogDebug(wxT("mask %s"), maskString.c_str());
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
FileDialog fd(mProject,
|
FileDialog fd(mProject,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user