fix behaviour of region-copy-drag when using the dropzone.
The copied regions all had a null playlist pointer, so they all ended up on the same (new) track
This commit is contained in:
parent
78d76c197e
commit
eb45b3baaa
|
@ -878,7 +878,12 @@ RegionMoveDrag::motion (GdkEvent* event, bool first_move)
|
||||||
const boost::shared_ptr<const Region> original = rv->region();
|
const boost::shared_ptr<const Region> original = rv->region();
|
||||||
boost::shared_ptr<Region> region_copy = RegionFactory::create (original, true);
|
boost::shared_ptr<Region> region_copy = RegionFactory::create (original, true);
|
||||||
region_copy->set_position (original->position());
|
region_copy->set_position (original->position());
|
||||||
|
/* need to set this so that the drop zone code can work. This doesn't
|
||||||
|
actually put the region into the playlist, but just sets a weak pointer
|
||||||
|
to it.
|
||||||
|
*/
|
||||||
|
region_copy->set_playlist (original->playlist());
|
||||||
|
|
||||||
RegionView* nrv;
|
RegionView* nrv;
|
||||||
if (arv) {
|
if (arv) {
|
||||||
boost::shared_ptr<AudioRegion> audioregion_copy
|
boost::shared_ptr<AudioRegion> audioregion_copy
|
||||||
|
|
Loading…
Reference in New Issue
Block a user