1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-23 15:41:09 +02:00

When importing a label track, set the track name as the file's base name. This per http://bugzilla.audacityteam.org/show_bug.cgi?id=550#c3.

This commit is contained in:
v.audacity 2012-08-01 23:45:48 +00:00
parent 8d92b35f9c
commit 7aef35adfd

View File

@ -5133,6 +5133,9 @@ void AudacityProject::OnImportLabels()
}
LabelTrack *newTrack = new LabelTrack(mDirManager);
wxString sTrackName;
wxFileName::SplitPath(fileName, NULL, NULL, &sTrackName, NULL);
newTrack->SetName(sTrackName);
newTrack->Import(f);