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:
Carl Hetherington 2010-09-19 02:18:59 +00:00
parent 9ad9e19d04
commit 620a4df730
4 changed files with 166 additions and 39 deletions

View file

@ -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;
}