mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Fix converting v4 monitor state -- amend 8a6d30377
It looks like MonitorControl::_monitoring is unused and should be removed. The actual value is Evoral::Control::_user_value
This commit is contained in:
parent
401eefec1c
commit
337b100b47
1 changed files with 2 additions and 1 deletions
|
|
@ -165,10 +165,11 @@ Track::set_state (const XMLNode& node, int version)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* convert old 3001 state */
|
/* convert old 3001 state */
|
||||||
std::string monitoring;
|
MonitorChoice monitoring;
|
||||||
if (node.get_property (X_("monitoring"), monitoring)) {
|
if (node.get_property (X_("monitoring"), monitoring)) {
|
||||||
XMLNode mon_node ("backwardscompat");
|
XMLNode mon_node ("backwardscompat");
|
||||||
mon_node.set_property (X_("monitoring"), monitoring);
|
mon_node.set_property (X_("monitoring"), monitoring);
|
||||||
|
mon_node.set_property (X_("value"), (int) monitoring);
|
||||||
_monitoring_control->set_state (mon_node, version);
|
_monitoring_control->set_state (mon_node, version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue