1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-23 15:41:09 +02:00
This commit is contained in:
v.audacity 2012-08-01 03:09:11 +00:00
parent 1926c7745f
commit cff4cd3c2d
2 changed files with 7 additions and 4 deletions

View File

@ -564,11 +564,12 @@ void LabelDialog::OnExport(wxCommandEvent &event)
return;
}
wxString fName;
// Extract the actual name.
wxString fName = mTrackNames[mTrackNames.GetCount() - 1].AfterFirst(wxT('-')).Mid(1);
fName = FileSelector(_("Export Labels As:"),
NULL,
_("labels.txt"),
fName.c_str(),
wxT("txt"),
wxT("*.txt"),
wxFD_SAVE | wxFD_OVERWRITE_PROMPT | wxRESIZE_BORDER,

View File

@ -3296,10 +3296,14 @@ void AudacityProject::OnExportLabels()
TrackListIterator iter(mTracks);
wxString fName = _("labels.txt");
t = iter.First();
while (t) {
if (t->GetKind() == Track::Label)
{
numLabelTracks++;
fName = t->GetName();
}
t = iter.Next();
}
@ -3308,8 +3312,6 @@ void AudacityProject::OnExportLabels()
return;
}
wxString fName = _("labels.txt");
fName = FileSelector(_("Export Labels As:"),
NULL,
fName,