/* reset this to get the right display of view mode after the switch */
set_view_mode (_view_mode);
+
+ /* make sure selection is correct */
+
+ // gui_track_selection_changed (_last_selected_routes);
/* current bank has not been saved */
session->set_dirty();
for (Surfaces::iterator s = surfaces.begin(); s != surfaces.end(); ++s) {
(*s)->gui_selection_changed (rl);
}
+
+ // _last_selected_routes = *rl;
}
framepos_t
int ms = _surface->mcp().modifier_state();
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
- boost::shared_ptr<AutomationControl> ac = button.control ();
- if (ac) {
+ /* get the corresponding vpot and whatever its
+ * controlling
+ */
+
+ Pot* pot = _surface->pots[Pot::ID + _index];
+
+ if (pot) {
+ boost::shared_ptr<AutomationControl> ac = pot->control ();
- /* reset to default/normal value */
- ac->set_value (ac->normal());
+ if (ac) {
+
+ /* reset to default/normal value */
+ ac->set_value (ac->normal());
+ }
}
} else {
+
DEBUG_TRACE (DEBUG::MackieControl, "switching to next pot mode\n");
next_pot_mode ();
}