From 353eb5601c764c28f433e3f7b29fb2ab4b478765 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 31 Jan 2017 20:40:31 +0100 Subject: [PATCH] Don't allow to select VCAs in the route-list --- gtk2_ardour/editor_routes.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index 1406ed43a7..cec0969863 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -1535,7 +1535,7 @@ EditorRoutes::selection_changed () } bool -EditorRoutes::selection_filter (Glib::RefPtr const &, TreeModel::Path const&, bool /*selected*/) +EditorRoutes::selection_filter (Glib::RefPtr const& model, TreeModel::Path const& path, bool /*selected*/) { if (selection_countdown) { if (--selection_countdown == 0) { @@ -1545,6 +1545,15 @@ EditorRoutes::selection_filter (Glib::RefPtr const &, TreeModel::Path return false; } } + + TreeModel::iterator iter = model->get_iter (path); + if (iter) { + boost::shared_ptr stripable = (*iter)[_columns.stripable]; + if (boost::dynamic_pointer_cast (stripable)) { + return false; + } + } + return true; }