mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
Fix (?) failure to load A2 sessions with a ControlOut.
git-svn-id: svn://localhost/ardour2/branches/3.0@12757 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3d3fa9ae02
commit
49fec4f430
1 changed files with 5 additions and 1 deletions
|
|
@ -26,6 +26,8 @@
|
|||
#include <cassert>
|
||||
#include <algorithm>
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include "pbd/xml++.h"
|
||||
#include "pbd/enumwriter.h"
|
||||
#include "pbd/memento_command.h"
|
||||
|
|
@ -2166,7 +2168,9 @@ Route::set_state_2X (const XMLNode& node, int version)
|
|||
}
|
||||
|
||||
if ((prop = node.property (X_("flags"))) != 0) {
|
||||
_flags = Flag (string_2_enum (prop->value(), _flags));
|
||||
string f = prop->value ();
|
||||
boost::replace_all (f, "ControlOut", "MonitorOut");
|
||||
_flags = Flag (string_2_enum (f, _flags));
|
||||
} else {
|
||||
_flags = Flag (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue