Prevent Processor classes messing with names when setting state from XML. Fixes...
authorCarl Hetherington <carl@carlh.net>
Tue, 11 Jan 2011 02:47:38 +0000 (02:47 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 11 Jan 2011 02:47:38 +0000 (02:47 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8503 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/processor.cc

index e5616987c6428e4bef5874a39b97155911eaf9b0..69d0f2408ddb2c6dafb26836bc9746b7a8832f92 100644 (file)
@@ -177,7 +177,10 @@ Processor::set_state (const XMLNode& node, int version)
 
        // may not exist for legacy 3.0 sessions
        if ((prop = node.property ("name")) != 0) {
-               set_name(prop->value());
+               /* don't let derived classes have a crack at set_name,
+                  as some (like Send) will screw with the one we suggest.
+               */
+               Processor::set_name (prop->value());
        }
 
        // may not exist for legacy 3.0 sessions