mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
Save and restore _saved_meter_point; fixes #4195.
git-svn-id: svn://localhost/ardour2/branches/3.0@10304 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
60978b5bc4
commit
854851162b
1 changed files with 7 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ Track::state (bool full)
|
|||
{
|
||||
XMLNode& root (Route::state (full));
|
||||
root.add_property (X_("monitoring"), enum_2_string (_monitoring));
|
||||
root.add_property (X_("saved-meter-point"), enum_2_string (_saved_meter_point));
|
||||
root.add_child_nocopy (_rec_enable_control->get_state());
|
||||
root.add_child_nocopy (_diskstream->get_state ());
|
||||
return root;
|
||||
|
|
@ -128,6 +129,12 @@ Track::_set_state (const XMLNode& node, int version)
|
|||
_monitoring = MonitorAuto;
|
||||
}
|
||||
|
||||
if ((prop = node.property (X_("saved-meter-point"))) != 0) {
|
||||
_saved_meter_point = MeterPoint (string_2_enum (prop->value(), _saved_meter_point));
|
||||
} else {
|
||||
_saved_meter_point = _meter_point;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue