summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_audio_import.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-09 13:36:02 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-09 13:36:02 +0000
commit49f353db5cdc5c977ddece857f5f95460eac9136 (patch)
tree591f30b38ddf8b13f4c3efe7c010873297b6a810 /gtk2_ardour/editor_audio_import.cc
parent5049883d464f637ad63f2ff316ead633068f8226 (diff)
Make sure that regions created during AsTrack and AsTapeTrack imports
are added to the master region list, otherwise if they are subsequently deleted they will be lost. This causes the undo record to go wrong as it references a non-existant region. May have been the cause of bug #4919. git-svn-id: svn://localhost/ardour2/branches/3.0@12626 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_audio_import.cc')
-rw-r--r--gtk2_ardour/editor_audio_import.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc
index aaf587a464..46cd59dcd5 100644
--- a/gtk2_ardour/editor_audio_import.cc
+++ b/gtk2_ardour/editor_audio_import.cc
@@ -945,7 +945,7 @@ Editor::finish_bringing_in_material (boost::shared_ptr<Region> region, uint32_t
}
boost::shared_ptr<Playlist> playlist = existing_track->playlist();
- boost::shared_ptr<Region> copy (RegionFactory::create (region));
+ boost::shared_ptr<Region> copy (RegionFactory::create (region, true));
begin_reversible_command (Operations::insert_file);
playlist->clear_changes ();
playlist->add_region (copy, pos);
@@ -963,7 +963,7 @@ Editor::finish_bringing_in_material (boost::shared_ptr<Region> region, uint32_t
list<boost::shared_ptr<AudioTrack> > at (_session->new_audio_track (in_chans, out_chans, Destructive));
if (!at.empty()) {
boost::shared_ptr<Playlist> playlist = at.front()->playlist();
- boost::shared_ptr<Region> copy (RegionFactory::create (region));
+ boost::shared_ptr<Region> copy (RegionFactory::create (region, true));
begin_reversible_command (Operations::insert_file);
playlist->clear_changes ();
playlist->add_region (copy, pos);