diff options
author | Carl Hetherington <carl@carlh.net> | 2010-03-30 23:40:28 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-03-30 23:40:28 +0000 |
commit | e3dd8cc3ee481924997a1650e3a130b2579be209 (patch) | |
tree | c14bd1999d9e7887f6ec05dff2a697aa0323223a /libs/ardour/audio_region_importer.cc | |
parent | 6721d997b159842e2c977ec0dd0c94002c0e1e47 (diff) |
Move region naming stuff from Session into RegionFactory, cleaning up some vestiges of when Session had a list of regions.
git-svn-id: svn://localhost/ardour2/branches/3.0@6812 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_region_importer.cc')
-rw-r--r-- | libs/ardour/audio_region_importer.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/ardour/audio_region_importer.cc b/libs/ardour/audio_region_importer.cc index ebe4ae5270..7be155b5f5 100644 --- a/libs/ardour/audio_region_importer.cc +++ b/libs/ardour/audio_region_importer.cc @@ -176,8 +176,6 @@ AudioRegionImporter::_move () if (broken()) { return; } - - session.add_regions (region); } bool @@ -209,7 +207,7 @@ AudioRegionImporter::parse_xml_region () } else if (!prop.compare("name")) { // rename region if necessary name = (*it)->value(); - name = session.new_region_name (name); + name = RegionFactory::new_region_name (name); (*it)->set_value (name); name_ok = true; } else { |