Fix restore of track visibility from state files (#3245)
git-svn-id: svn://localhost/ardour2/branches/3.0@7276 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user