#include "ardour/session.h"
#include "ardour/solo_isolate_control.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace ARDOUR;
using namespace std;
using namespace PBD;
SoloSafeControl::SoloSafeControl (Session& session, std::string const & name)
- : SlavableAutomationControl (session, SoloAutomation, ParameterDescriptor (SoloSafeAutomation),
+ : SlavableAutomationControl (session, SoloSafeAutomation, ParameterDescriptor (SoloSafeAutomation),
boost::shared_ptr<AutomationList>(new AutomationList(Evoral::Parameter(SoloSafeAutomation))),
name)
, _solo_safe (false)
*/
AutomationControl::actually_set_value (val, gcd);
- _session.set_dirty ();
}
double
}
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) {