mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Save / restore settings from the editor region list context menu.
git-svn-id: svn://localhost/ardour2/branches/3.0@7804 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9ad9e19d04
commit
620a4df730
4 changed files with 166 additions and 39 deletions
|
|
@ -2559,6 +2559,7 @@ Editor::set_state (const XMLNode& node, int /*version*/)
|
|||
XMLNodeList children = node.children ();
|
||||
for (XMLNodeList::const_iterator i = children.begin(); i != children.end(); ++i) {
|
||||
selection->set_state (**i, Stateful::current_state_version);
|
||||
_regions->set_state (**i);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
@ -2648,6 +2649,7 @@ Editor::get_state ()
|
|||
node->add_property (X_("editor-list-page"), buf);
|
||||
|
||||
node->add_child_nocopy (selection->get_state ());
|
||||
node->add_child_nocopy (_regions->get_state ());
|
||||
|
||||
return *node;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue