summaryrefslogtreecommitdiff
path: root/libs/ardour/session_command.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-05 23:14:48 +0000
committerDavid Robillard <d@drobilla.net>2008-10-05 23:14:48 +0000
commit6b0d22268b85f7033eb7ddcfe9e50e21b86eec34 (patch)
treef339432b60ee666d47a3bddd59c63b8c3b27a69b /libs/ardour/session_command.cc
parent14a40f32f696c0d2b4a51fe762c5038a52079706 (diff)
Normalize XML property name style, preserving old session loading (on load _ will be converted to -).
Still to go: Non-consistent PBD tag names, colours. git-svn-id: svn://localhost/ardour2/branches/3.0@3872 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_command.cc')
-rw-r--r--libs/ardour/session_command.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc
index b696f7d410..bda3475a30 100644
--- a/libs/ardour/session_command.cc
+++ b/libs/ardour/session_command.cc
@@ -54,7 +54,7 @@ Session::memento_command_factory(XMLNode *n)
XMLNode *child = 0;
/* get id */
- id = PBD::ID(n->property("obj_id")->value());
+ id = PBD::ID(n->property("obj-id")->value());
/* get before/after */
@@ -81,7 +81,7 @@ Session::memento_command_factory(XMLNode *n)
}
/* create command */
- string obj_T = n->property ("type_name")->value();
+ string obj_T = n->property ("type-name")->value();
if (obj_T == typeid (AudioRegion).name() || obj_T == typeid (MidiRegion).name() || obj_T == typeid (Region).name()) {
if (regions.count(id)) {
return new MementoCommand<Region>(*regions[id], before, after);