mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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:
parent
a54f107d4f
commit
a8e019c9e0
1 changed files with 7 additions and 0 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue