From 23f29a89ce2c079dc23f49bc666bc8ee68a88039 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 5 Jun 2016 16:09:47 -0400 Subject: [PATCH] use PresentationInfo API to mark Stripable elements hidden (from editor) --- gtk2_ardour/editor_routes.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index e73160b4a2..8423fd4036 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -1012,13 +1012,7 @@ EditorRoutes::sync_presentation_info_from_treeview () continue; } - if (!visible) { - stripable->presentation_info().set_flag (PresentationInfo::Hidden); - } else { - stripable->presentation_info().unset_flag (PresentationInfo::Hidden); - } - - cerr << "Would change PI go for " << stripable->name() << " to " << order << " currently " << stripable->presentation_info().order() << endl; + stripable->presentation_info().set_hidden (!visible); if (order != stripable->presentation_info().order()) { stripable->set_presentation_order_explicit (order);