Paste to the source of a copy if there are no selected tracks (rather than using the track under the mouse). Fixes #3333.

git-svn-id: svn://localhost/ardour2/branches/3.0@7729 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-09-02 01:06:19 +00:00
parent e76c4ee06d
commit b9191eb0c5
3 changed files with 18 additions and 3 deletions

View file

@ -2044,6 +2044,11 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
RegionLayeringOrderEditor* layering_order_editor;
void update_region_layering_order_editor (ARDOUR::framepos_t);
/** Track that was the source for the last cut/copy operation. Used as a place
to paste things iff there is no selected track.
*/
TimeAxisView* _last_cut_copy_source_track;
friend class Drag;
friend class RegionDrag;
friend class RegionMoveDrag;