13
0

save/restore meter point from carl for #1748

git-svn-id: svn://localhost/ardour2/branches/3.0@4376 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-01-02 12:55:30 +00:00
parent 042997e5ed
commit 455f686e09

View File

@ -1943,6 +1943,7 @@ Route::state(bool full_state)
node->add_property("mute-affects-post-fader", _mute_affects_post_fader?"yes":"no"); node->add_property("mute-affects-post-fader", _mute_affects_post_fader?"yes":"no");
node->add_property("mute-affects-control-outs", _mute_affects_control_outs?"yes":"no"); node->add_property("mute-affects-control-outs", _mute_affects_control_outs?"yes":"no");
node->add_property("mute-affects-main-outs", _mute_affects_main_outs?"yes":"no"); node->add_property("mute-affects-main-outs", _mute_affects_main_outs?"yes":"no");
node->add_property("meter-point", enum_2_string (_meter_point));
if (_edit_group) { if (_edit_group) {
node->add_property("edit-group", _edit_group->name()); node->add_property("edit-group", _edit_group->name());
@ -2232,6 +2233,10 @@ Route::_set_state (const XMLNode& node, bool call_base)
_mute_affects_main_outs = (prop->value()=="yes")?true:false; _mute_affects_main_outs = (prop->value()=="yes")?true:false;
} }
if ((prop = node.property (X_("meter-point"))) != 0) {
_meter_point = MeterPoint (string_2_enum (prop->value (), _meter_point));
}
if ((prop = node.property (X_("edit-group"))) != 0) { if ((prop = node.property (X_("edit-group"))) != 0) {
RouteGroup* edit_group = _session.edit_group_by_name(prop->value()); RouteGroup* edit_group = _session.edit_group_by_name(prop->value());
if(edit_group == 0) { if(edit_group == 0) {