Leave processor box sensitive when editing aux-sends

This is required to toggle the strip to revert from aux-view
to the main route using the aux-send processor itself.

Discuss:
Perhaps this should be reverted, and ProcessorBox::edit_aux_send()
be removed: It is currently possible to create various
inconsistent mixer-states.

* use "Aux" on a Bus, then double-click some Internal-Send to
  revert strips. But Aux remains active
* Removing sends while "Aux" is active does not disable Aux.

If the processor box was insensitive those issues won't be present.
However it is convenient to use double-click on the editor-mixer to
access a send's panner ...
This commit is contained in:
Robin Gareus 2020-02-13 22:24:24 +01:00
parent d7fed7c52e
commit f29e5ea7ab
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -1966,7 +1966,6 @@ MixerStrip::map_frozen ()
boost::shared_ptr<AudioTrack> at = audio_track(); boost::shared_ptr<AudioTrack> at = audio_track();
bool en = _route->active () || ARDOUR::Profile->get_mixbus(); bool en = _route->active () || ARDOUR::Profile->get_mixbus();
bool send = _current_delivery && boost::dynamic_pointer_cast<Send>(_current_delivery) != 0;
if (at) { if (at) {
switch (at->freeze_state()) { switch (at->freeze_state()) {
@ -1975,11 +1974,11 @@ MixerStrip::map_frozen ()
hide_redirect_editors (); hide_redirect_editors ();
break; break;
default: default:
processor_box.set_sensitive (en && !send); processor_box.set_sensitive (en);
break; break;
} }
} else { } else {
processor_box.set_sensitive (en && !send); processor_box.set_sensitive (en);
} }
RouteUI::map_frozen (); RouteUI::map_frozen ();
} }