From c104c9d4726f3ba1ecd352d13b88a57f2f964510 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 12 Oct 2016 17:26:46 -0400 Subject: change return type of AutomationControl::actually_set_value() from void to bool, to indicate if value was changed. Don't call Session::set_dirty() when no change occurs --- libs/ardour/record_enable_control.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/record_enable_control.cc') diff --git a/libs/ardour/record_enable_control.cc b/libs/ardour/record_enable_control.cc index f3512c3204..c83c0d186d 100644 --- a/libs/ardour/record_enable_control.cc +++ b/libs/ardour/record_enable_control.cc @@ -45,15 +45,15 @@ RecordEnableControl::set_value (double val, Controllable::GroupControlDispositio SlavableAutomationControl::set_value (val, gcd); } -void +bool RecordEnableControl::actually_set_value (double val, Controllable::GroupControlDisposition gcd) { if (val && !_recordable.can_be_record_enabled()) { std::cerr << "rec-enable not allowed\n"; - return; + return false; } - SlavableAutomationControl::actually_set_value (val, gcd); + return SlavableAutomationControl::actually_set_value (val, gcd); } void -- cgit v1.2.3