diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-12 17:26:46 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-12 17:26:46 -0400 |
commit | c104c9d4726f3ba1ecd352d13b88a57f2f964510 (patch) | |
tree | 61c1214d49f6efded889213e612d49fed5612927 /libs/ardour/record_enable_control.cc | |
parent | 27cff39dc7c8692e309ac0f9c515a583b775fd7d (diff) |
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
Diffstat (limited to 'libs/ardour/record_enable_control.cc')
-rw-r--r-- | libs/ardour/record_enable_control.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 |