diff options
author | Ben Loftis <ben@glw.com> | 2010-04-16 22:07:43 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2010-04-16 22:07:43 +0000 |
commit | 05550ae584db4e309e08628970a38d623329233d (patch) | |
tree | b1f987dbb87b8aac511684a1b4ea38ba7e69d74d /gtk2_ardour/route_time_axis.cc | |
parent | c9188f7f76788b73cea7673dcfbbb66728f90e0b (diff) |
rationalize track selection and range selection
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6919 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 3127f71203..880517cafd 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -1091,7 +1091,11 @@ RouteTimeAxisView::selection_click (GdkEventButton* ev) break; case Selection::Set: - editor.get_selection().set (*tracks); + if (find (editor.get_selection().tracks.begin(), editor.get_selection().tracks.end(), this) != editor.get_selection().tracks.end()) { + editor.get_selection().remove (*tracks); + } else { + editor.get_selection().set (*tracks); + } break; case Selection::Extend: |