13
0

Use the file name as the track name when importing audio files, as per bug #1622

git-svn-id: svn://localhost/ardour2/trunk@2076 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2007-06-28 13:04:43 +00:00
parent b5af3bb8e3
commit 39f5c0ad56

View File

@ -479,6 +479,7 @@ Editor::finish_bringing_in_audio (boost::shared_ptr<AudioRegion> region, uint32_
if (!at.empty()) {
boost::shared_ptr<AudioRegion> copy (boost::dynamic_pointer_cast<AudioRegion> (RegionFactory::create (region)));
at.front()->diskstream()->playlist()->add_region (copy, pos);
at.front()->set_name(short_path(copy->name(), 32));
}
break;
}
@ -489,6 +490,7 @@ Editor::finish_bringing_in_audio (boost::shared_ptr<AudioRegion> region, uint32_
if (!at.empty()) {
boost::shared_ptr<AudioRegion> copy (boost::dynamic_pointer_cast<AudioRegion> (RegionFactory::create (region)));
at.front()->diskstream()->playlist()->add_region (copy, pos);
at.front()->set_name(short_path(copy->name(), 32));
}
break;
}