mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
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:
parent
5fe37dbc53
commit
7720d0d109
2 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue