mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 14:46:34 +01:00
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:
parent
7675b88b02
commit
cec1e08d33
1 changed files with 5 additions and 4 deletions
|
|
@ -1129,11 +1129,12 @@ RegionMoveDrag::finished_no_copy (
|
|||
|
||||
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 (
|
||||
RegionFactory::create (rv->region (), true), dest_rtv, dest_layer, where, modified_playlists
|
||||
);
|
||||
boost::shared_ptr<Region> r = RegionFactory::create (rv->region (), 0, PropertyList(), false);
|
||||
|
||||
/* insert into new playlist */
|
||||
RegionView* new_view = insert_region_into_playlist (r, dest_rtv, dest_layer, where, modified_playlists);
|
||||
|
||||
if (new_view == 0) {
|
||||
++i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue