13
0

Fully restore ARDOUR::SoloSafeControl state

This is part of a fix for bug #7025 which means the id property of
PBD::Controllable is restored and a new id is not generated at first save.
This commit is contained in:
Tim Mayberry 2016-09-20 15:39:10 +10:00
parent 359e63fbe8
commit 3797d8c2f1

View File

@ -66,8 +66,12 @@ SoloSafeControl::get_value () const
}
int
SoloSafeControl::set_state (XMLNode const & node, int)
SoloSafeControl::set_state (XMLNode const & node, int version)
{
if (SlavableAutomationControl::set_state(node, version)) {
return -1;
}
XMLProperty const * prop;
if ((prop = node.property ("solo-safe")) != 0) {