summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-30 01:24:00 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-30 01:24:00 +0000
commitb75956d35d0c00f23852ed7b09dcb7c33003f20c (patch)
treed495bd0867aa05bd7184bc51e814aaa52bf9e4bc /gtk2_ardour/selection.cc
parent57ec614531375c04eac7d16fdf882311aebfe231 (diff)
Respect link of region and track selection when setting via a list of Selectables. Should fix #2153.
git-svn-id: svn://localhost/ardour2/branches/3.0@7710 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 3e9cd41698..42f1a80f0b 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -869,6 +869,11 @@ Selection::set (list<Selectable*> const & selectables)
{
clear_regions();
clear_points ();
+
+ if (Config->get_link_region_and_track_selection ()) {
+ clear_tracks ();
+ }
+
add (selectables);
}