diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-05 16:09:47 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-05 16:33:02 -0400 |
commit | 23f29a89ce2c079dc23f49bc666bc8ee68a88039 (patch) | |
tree | 47a4059d0ec448a29c5a5af9e9e827553658f2bf /gtk2_ardour/editor_routes.cc | |
parent | b85911d252ae72aaeacf3bb8ea4cc417278fd5a1 (diff) |
use PresentationInfo API to mark Stripable elements hidden (from editor)
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r-- | gtk2_ardour/editor_routes.cc | 8 |
1 files changed, 1 insertions, 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); |