From cec1e08d3390cdeae707849d0c04b45d29795f6e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 23 Sep 2014 12:22:26 -0400 Subject: [PATCH] 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 --- gtk2_ardour/editor_drag.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 081b121108..de167dc167 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -1129,11 +1129,12 @@ RegionMoveDrag::finished_no_copy ( if (changed_tracks) { + /* new region that is identical to the original one, including its name */ + + boost::shared_ptr r = RegionFactory::create (rv->region (), 0, PropertyList(), false); + /* insert into new playlist */ - - RegionView* new_view = insert_region_into_playlist ( - RegionFactory::create (rv->region (), true), dest_rtv, dest_layer, where, modified_playlists - ); + RegionView* new_view = insert_region_into_playlist (r, dest_rtv, dest_layer, where, modified_playlists); if (new_view == 0) { ++i;