summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-02-12 14:28:26 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-02-13 16:19:06 -0500
commiteb45b3baaa1d2565da3ce04b91f924df80512725 (patch)
treeb93b2774a3bd8d2091b1b90e3f4af3bfa46e7e62 /gtk2_ardour
parent78d76c197eaba74e1f0f9453140ac52af920b3ab (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_drag.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index 50f015eeeb..a5ead24562 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -878,7 +878,12 @@ RegionMoveDrag::motion (GdkEvent* event, bool first_move)
const boost::shared_ptr<const Region> original = rv->region();
boost::shared_ptr<Region> region_copy = RegionFactory::create (original, true);
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;
if (arv) {
boost::shared_ptr<AudioRegion> audioregion_copy