diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-18 16:45:29 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-18 16:45:29 +0000 |
commit | f4fe4d36b1db9d5c267273e2f772e9d6b3746d1c (patch) | |
tree | 5db9198b964c506244cfe1096d94898fa5ae7426 /gtk2_ardour/selection.cc | |
parent | 058911a1d8b4262518771343e0a26a70469e1d57 (diff) |
more games with selection
git-svn-id: svn://localhost/ardour2/trunk@1360 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r-- | gtk2_ardour/selection.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc index baf2731e57..2ea9edfb2f 100644 --- a/gtk2_ardour/selection.cc +++ b/gtk2_ardour/selection.cc @@ -334,8 +334,10 @@ Selection::add (vector<RegionView*>& v) for (vector<RegionView*>::iterator i = v.begin(); i != v.end(); ++i) { if (find (regions.begin(), regions.end(), (*i)) == regions.end()) { - regions.add ((*i)); - changed = true; + changed = regions.add ((*i)); + if (changed) { + add (&(*i)->get_trackview()); + } } } @@ -543,12 +545,14 @@ void Selection::set (RegionView* r) { clear_regions (); + clear_tracks (); add (r); } void Selection::set (vector<RegionView*>& v) { + clear_tracks (); clear_regions (); // make sure to deselect any automation selections clear_points(); |