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/strip.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/strip.cc')
-rw-r--r-- | libs/surfaces/mackie/strip.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index 7197545857..3f1ab24da6 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -377,11 +377,13 @@ Strip::notify_property_changed (const PropertyChange& what_changed) if (what_changed.contains (ARDOUR::Properties::name)) { show_stripable_name (); } +} - if (what_changed.contains (ARDOUR::Properties::selected)) { - if (_stripable) { - _surface->write (_select->set_state (_stripable->is_selected())); - } +void +Strip::update_selection_state () +{ + if(_stripable) { + _surface->write (_select->set_state (_stripable->is_selected())); } } @@ -1729,6 +1731,7 @@ Strip::setup_eq_vpot (boost::shared_ptr<Stripable> r) case 2: eq_band = global_pos; pc = r->eq_gain_controllable (eq_band); + band_name = r->eq_band_name (eq_band); param = EQGain; break; } |