ensure that imported regions have names based on the files they are based on

git-svn-id: svn://localhost/ardour2/branches/3.0@6705 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-02-20 03:32:42 +00:00
parent 5fe37dbc53
commit 7720d0d109
2 changed files with 3 additions and 1 deletions

View file

@ -228,7 +228,7 @@ Region::Region (const SourceList& srcs)
if @param offset_relative is false, then the start within the source is given @param offset.
*/
Region::Region (boost::shared_ptr<const Region> other, frameoffset_t offset, bool offset_relative)
: SessionObject(other->session(), "toBeRenamed")
: SessionObject(other->session(), other->name())
, _type (other->data_type())
, _no_property_changes (true)
, REGION_COPY_STATE (other)

View file

@ -28,6 +28,7 @@
#include "ardour/audiosource.h"
#include "ardour/midi_source.h"
#include "ardour/midi_region.h"
#include "ardour/utils.h"
#include "i18n.h"
@ -238,6 +239,7 @@ RegionFactory::create (const SourceList& srcs, const PropertyList& plist, bool a
}
if (ret) {
ret->set_properties (plist);
ret->unlock_property_changes ();