From 7720d0d109ca47c2a0a23883d5831de1ff32005d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 20 Feb 2010 03:32:42 +0000 Subject: [PATCH] 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 --- libs/ardour/region.cc | 2 +- libs/ardour/region_factory.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index d7b1eec2f7..ca89c3cec0 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -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 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) diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index 42a5629e4a..348dc72041 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -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 ();