Fix solo/mute when loading old (4.x) sessions.
authorRobin Gareus <robin@gareus.org>
Fri, 10 Mar 2017 20:42:02 +0000 (21:42 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 10 Mar 2017 20:42:02 +0000 (21:42 +0100)
libs/pbd/controllable.cc

index 5f7350da63659cc0a1421b32da7aec9204dbe840..a2e6265927037065db07855dbfe3021828be3d77 100644 (file)
@@ -145,7 +145,7 @@ Controllable::set_state (const XMLNode& node, int /*version*/)
        set_id (node);
 
        if ((prop = node.property (X_("flags"))) != 0) {
-               _flags = (Flag) string_2_enum (prop->value(), _flags);
+               _flags = (Flag) ((_flags & Controllable::RealTime) | string_2_enum (prop->value(), _flags));
        }
 
        if ((prop = node.property (X_("value"))) != 0) {