summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-12-05 18:33:20 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-12-05 18:33:20 +0000
commitacddc9bc7a3a3f5079404c9e30fcfec9284eb0b6 (patch)
treef0f8195c2e6d61941798f40fa40ad97dc8eea795 /gtk2_ardour/selection.cc
parent35ab39bd93b7de5e8526c6908a06bfb86df4aaf1 (diff)
fix minor logic error with linked region & track selections
git-svn-id: svn://localhost/ardour2/branches/3.0@10905 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 0b15bbec08..7d465f3ddf 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -122,6 +122,9 @@ Selection::clear_regions ()
if (!regions.empty()) {
regions.clear_all ();
RegionsChanged();
+ if (Config->get_link_region_and_track_selection()) {
+ clear_tracks ();
+ }
}
}
@@ -733,7 +736,10 @@ void
Selection::set (RegionView* r, bool also_clear_tracks)
{
clear_regions ();
- if (also_clear_tracks) {
+ if (also_clear_tracks && !Config->get_link_region_and_track_selection()) {
+ /* clear_regions() will have done this if the link preference
+ * is enabled
+ */
clear_tracks ();
}
add (r);