summaryrefslogtreecommitdiff
path: root/libs/ardour/automation_control.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-12 02:37:30 +0100
committerRobin Gareus <robin@gareus.org>2017-03-12 02:37:30 +0100
commit52b203ad36d07e50c704babb8b7f2e506b67137c (patch)
tree134f882caed8fef69d8035e4c70555d18dda1ebd /libs/ardour/automation_control.cc
parent37bcbcad414774a4a390f15e8c1f6ffbf17699a3 (diff)
Fix issue with automation-playback constantly marking a session dirty.
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r--libs/ardour/automation_control.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc
index 0a29e7e662..84c606cfd8 100644
--- a/libs/ardour/automation_control.cc
+++ b/libs/ardour/automation_control.cc
@@ -60,6 +60,10 @@ AutomationControl::AutomationControl(ARDOUR::Session& s
if (_desc.toggled) {
set_flags (Controllable::Toggle);
}
+ boost::shared_ptr<AutomationList> al = alist();
+ if (al) {
+ al->StateChanged.connect_same_thread (_state_changed_connection, boost::bind (&Session::set_dirty, &_session));
+ }
}
AutomationControl::~AutomationControl ()
@@ -174,7 +178,9 @@ AutomationControl::actually_set_value (double value, PBD::Controllable::GroupCon
//<< " (was " << old_value << ") @ " << this << std::endl;
Changed (true, gcd);
- _session.set_dirty ();
+ if (!al || !al->automation_playback ()) {
+ _session.set_dirty ();
+ }
}
}