mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
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
This commit is contained in:
parent
5049883d46
commit
49f353db5c
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue