mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-23 15:41:09 +02:00
Fixes Note 3 at http://bugzilla.audacityteam.org/show_bug.cgi?id=550#c0.
This commit is contained in:
parent
1926c7745f
commit
cff4cd3c2d
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user