diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-05-17 15:55:43 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-05-17 15:55:43 -0500 |
commit | d3738b087ef1698d45e140114feb8fca4d31e42f (patch) | |
tree | dee6cbe57473d8da7b44e4378a0015b38726c423 /libs/surfaces/mackie/surface.cc | |
parent | 60cc2823f36103b86c9189a122566767ebf898eb (diff) |
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.
Diffstat (limited to 'libs/surfaces/mackie/surface.cc')
-rw-r--r-- | libs/surfaces/mackie/surface.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/surface.cc b/libs/surfaces/mackie/surface.cc index 35bff7e5b2..079d057d43 100644 --- a/libs/surfaces/mackie/surface.cc +++ b/libs/surfaces/mackie/surface.cc @@ -939,6 +939,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) { vector<boost::shared_ptr<Stripable> >::const_iterator r; |