diff options
author | Carl Hetherington <carl@carlh.net> | 2010-06-18 00:54:18 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-06-18 00:54:18 +0000 |
commit | a8e019c9e0a0fcbbe9aa75f25dba90ca1a5eda2b (patch) | |
tree | 1ff5559c6502c160a0b3de581cab41a6df21278a /gtk2_ardour/time_axis_view.cc | |
parent | a54f107d4f9106a1fe67357030086682f4d7151a (diff) |
Fix restore of track visibility from state files (#3245)
git-svn-id: svn://localhost/ardour2/branches/3.0@7276 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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") { |