when dragging regions across tracks, make the newly created region in the target track(s) have the same name as the original (and do not announce its creation since it effectively already exists

This commit is contained in:
Paul Davis 2014-09-23 12:22:26 -04:00
parent 7675b88b02
commit cec1e08d33

View file

@ -1129,11 +1129,12 @@ RegionMoveDrag::finished_no_copy (
if (changed_tracks) { if (changed_tracks) {
/* insert into new playlist */ /* new region that is identical to the original one, including its name */
RegionView* new_view = insert_region_into_playlist ( boost::shared_ptr<Region> r = RegionFactory::create (rv->region (), 0, PropertyList(), false);
RegionFactory::create (rv->region (), true), dest_rtv, dest_layer, where, modified_playlists
); /* insert into new playlist */
RegionView* new_view = insert_region_into_playlist (r, dest_rtv, dest_layer, where, modified_playlists);
if (new_view == 0) { if (new_view == 0) {
++i; ++i;