Bindings save release bindings as well as press bindings
git-svn-id: svn://localhost/ardour2/branches/3.0@7622 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
063b91313f
commit
4b23fe7a7e
@ -212,6 +212,17 @@ Bindings::save (const string& path)
|
||||
presses->add_child_nocopy (*child);
|
||||
}
|
||||
|
||||
XMLNode* releases = new XMLNode (X_("Release"));
|
||||
root->add_child_nocopy (*releases);
|
||||
|
||||
for (KeybindingMap::iterator k = release_bindings.begin(); k != release_bindings.end(); ++k) {
|
||||
XMLNode* child;
|
||||
child = new XMLNode (X_("Binding"));
|
||||
child->add_property (X_("key"), k->first.name());
|
||||
child->add_property (X_("action"), k->second->get_name());
|
||||
releases->add_child_nocopy (*child);
|
||||
}
|
||||
|
||||
if (!tree.write (path)) {
|
||||
::unlink (path.c_str());
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user