MCP: Fix issue with strip "select" buttons that stayed stuck on.

* Depending on individual strips to watch the selection property is prone to failure.
  * Stripable_selection_changed() is called when a selection operation is completed.
This commit is contained in:
Ben Loftis 2017-05-17 15:55:43 -05:00
parent 60cc2823f3
commit d3738b087e
5 changed files with 25 additions and 5 deletions

View file

@ -938,6 +938,15 @@ Surface::write (const MidiByteArray& data)
}
}
void
Surface::update_strip_selection ()
{
Strips::iterator s = strips.begin();
for ( ; s != strips.end(); ++s) {
(*s)->update_selection_state();
}
}
void
Surface::map_stripables (const vector<boost::shared_ptr<Stripable> >& stripables)
{