diff options
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r-- | libs/ardour/automation_control.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index 0e2355e708..671cd6e977 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -25,6 +25,7 @@ #include "ardour/session.h" #include "pbd/memento_command.h" +#include "pbd/stacktrace.h" #include "i18n.h" @@ -48,6 +49,16 @@ AutomationControl::~AutomationControl () { } +bool +AutomationControl::writable() const +{ + boost::shared_ptr<AutomationList> al = alist(); + if (al) { + return al->automation_state() != Play; + } + return true; +} + /** Get the current effective `user' value based on automation state */ double AutomationControl::get_value() const |