summaryrefslogtreecommitdiff
path: root/libs/ardour/user_bundle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/user_bundle.cc')
-rw-r--r--libs/ardour/user_bundle.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/user_bundle.cc b/libs/ardour/user_bundle.cc
index 2dee0af01e..b20e79c69a 100644
--- a/libs/ardour/user_bundle.cc
+++ b/libs/ardour/user_bundle.cc
@@ -45,7 +45,12 @@ ARDOUR::UserBundle::set_state (XMLNode const & node)
return -1;
}
- add_channel ("XXX");
+ if ((name = (*i)->property ("name")) == 0) {
+ PBD::error << _("Node for Channel has no \"name\" property") << endmsg;
+ return -1;
+ }
+
+ add_channel (name->value ());
XMLNodeList const ports = (*i)->children ();