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:
parent
8d92b35f9c
commit
7aef35adfd
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user