Save solo isolate / solo safe states. Fixes #3551.
git-svn-id: svn://localhost/ardour2/branches/3.0@8078 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -1763,6 +1763,8 @@ Route::state(bool full_state)
|
||||
node->add_property ("soloed-by-upstream", buf);
|
||||
snprintf (buf, sizeof (buf), "%d", _soloed_by_others_downstream);
|
||||
node->add_property ("soloed-by-downstream", buf);
|
||||
node->add_property ("solo-isolated", solo_isolated() ? "yes" : "no");
|
||||
node->add_property ("solo-safe", _solo_safe ? "yes" : "no");
|
||||
|
||||
node->add_child_nocopy (_input->state (full_state));
|
||||
node->add_child_nocopy (_output->state (full_state));
|
||||
@@ -1877,6 +1879,10 @@ Route::_set_state (const XMLNode& node, int version, bool /*call_base*/)
|
||||
set_solo_isolated (string_is_affirmative (prop->value()), this);
|
||||
}
|
||||
|
||||
if ((prop = node.property ("solo-safe")) != 0) {
|
||||
set_solo_safe (string_is_affirmative (prop->value()), this);
|
||||
}
|
||||
|
||||
if ((prop = node.property (X_("phase-invert"))) != 0) {
|
||||
set_phase_invert (boost::dynamic_bitset<> (prop->value ()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user