fix up missing ID in route state; no error message when making a port connection...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 11 Jun 2009 13:56:12 +0000 (13:56 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 11 Jun 2009 13:56:12 +0000 (13:56 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5168 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audioengine.cc
libs/ardour/route.cc

index b563537cb39b4913f0ba7cf2898a095e8f9dc3f2..4e2d97f7186139f45275468947299c94afd0eace 100644 (file)
@@ -716,9 +716,7 @@ AudioEngine::connect (const string& source, const string& destination)
        }
        
        if (ret > 0) {
-               error << string_compose(_("AudioEngine: connection already exists: %1 (%2) to %3 (%4)"), 
-                                       source, s, destination, d) 
-                     << endmsg;
+               /* already exists - no error, no warning */
        } else if (ret < 0) {
                error << string_compose(_("AudioEngine: cannot connect %1 (%2) to %3 (%4)"), 
                                        source, s, destination, d) 
index e7d68c488438d55636b15c050d798d287d877180..36b0a6bf68868dc9086655a8d8ee3b8952e162b4 100644 (file)
@@ -1388,6 +1388,8 @@ Route::state(bool full_state)
        ProcessorList::iterator i;
        char buf[32];
 
+       id().print (buf, sizeof (buf));
+       node->add_property("id", buf);
        node->add_property ("name", _name);
        node->add_property("default-type", _default_type.to_string());
 
@@ -1477,6 +1479,10 @@ Route::_set_state (const XMLNode& node, bool call_base)
                Route::set_name (prop->value());
        } 
 
+       if ((prop = node.property ("id")) != 0) {
+               _id = prop->value ();
+       }
+
        if ((prop = node.property (X_("flags"))) != 0) {
                _flags = Flag (string_2_enum (prop->value(), _flags));
        } else {