Mark Sequence as edited when one of its parent ControlSet's ControlLists is changed.

git-svn-id: svn://localhost/ardour2/branches/3.0@7404 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-07-12 00:41:45 +00:00
parent 6f5ee7c429
commit d1b4599725
12 changed files with 60 additions and 20 deletions

View file

@ -41,6 +41,8 @@ void
ControlSet::add_control(boost::shared_ptr<Control> ac)
{
_controls[ac->parameter()] = ac;
ac->ListMarkedDirty.connect_same_thread (_control_connections, boost::bind (&ControlSet::control_list_marked_dirty, this));
}
void
@ -108,6 +110,8 @@ ControlSet::clear_controls ()
{
Glib::Mutex::Lock lm (_control_lock);
_control_connections.drop_connections ();
for (Controls::iterator li = _controls.begin(); li != _controls.end(); ++li)
li->second->list()->clear();
}