diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-18 00:45:37 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-18 00:45:37 +0100 |
commit | 85e3d2158e53df7450e56cbef3d2b3b3aebeb59b (patch) | |
tree | 59c612cf61af26aed595f76d815c603377874b06 /gtk2_ardour/track_selection.cc | |
parent | 4258bad19dfd3e230498d222c52e2566c6666c20 (diff) |
Prevent direct and indirect selection of VCAs
the ::selection_filter() does not cover select-all and various other
indirect selection operations.
Diffstat (limited to 'gtk2_ardour/track_selection.cc')
-rw-r--r-- | gtk2_ardour/track_selection.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/track_selection.cc b/gtk2_ardour/track_selection.cc index 8b065faef3..ac3d8b68e5 100644 --- a/gtk2_ardour/track_selection.cc +++ b/gtk2_ardour/track_selection.cc @@ -25,6 +25,7 @@ #include "track_selection.h" #include "time_axis_view.h" #include "public_editor.h" +#include "vca_time_axis.h" using namespace std; @@ -44,6 +45,9 @@ TrackSelection::add (TrackViewList const & t) TrackViewList added; for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) { + if (dynamic_cast<VCATimeAxisView*> (*i)) { + continue; + } /* select anything in the same select-enabled route group */ ARDOUR::RouteGroup* rg = (*i)->route_group (); |