From a8e019c9e0a0fcbbe9aa75f25dba90ca1a5eda2b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 18 Jun 2010 00:54:18 +0000 Subject: [PATCH] Fix restore of track visibility from state files (#3245) git-svn-id: svn://localhost/ardour2/branches/3.0@7276 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/time_axis_view.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index 43d9d4b41b..978ce6debb 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -968,6 +968,8 @@ TimeAxisView::get_parent_with_state () XMLNode& TimeAxisView::get_state () { + /* XXX: is this method used? */ + XMLNode* node = new XMLNode ("TAV-" + name()); char buf[32]; @@ -982,10 +984,15 @@ TimeAxisView::set_state (const XMLNode& node, int /*version*/) { const XMLProperty *prop; + /* XXX: I think this might be vestigial */ if ((prop = node.property ("marked-for-display")) != 0) { _marked_for_display = (prop->value() == "1"); } + if ((prop = node.property ("shown-editor")) != 0) { + _marked_for_display = string_is_affirmative (prop->value ()); + } + if ((prop = node.property ("track-height")) != 0) { if (prop->value() == "largest") {