mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
use selection-as-group logic for monitoring choice control
This commit is contained in:
parent
78e023fcc2
commit
2cf18120c6
1 changed files with 12 additions and 2 deletions
|
|
@ -952,9 +952,19 @@ RouteUI::monitor_release (GdkEventButton* ev, MonitorChoice monitor_choice)
|
|||
rl->push_back (route());
|
||||
_session->set_controls (route_list_to_control_list (rl, &Stripable::monitoring_control), (double) mc, GROUP_ACTION);
|
||||
} else {
|
||||
|
||||
std::shared_ptr<RouteList> rl (new RouteList);
|
||||
rl->push_back (route());
|
||||
_session->set_controls (route_list_to_control_list (rl, &Stripable::monitoring_control), (double) mc, Controllable::UseGroup);
|
||||
Controllable::GroupControlDisposition gcd;
|
||||
|
||||
if (ARDOUR_UI::instance()->maybe_use_select_as_group (*_route)) {
|
||||
gather_selected_routes (rl);
|
||||
gcd = Controllable::NoGroup;
|
||||
} else {
|
||||
rl->push_back (route());
|
||||
gcd = Controllable::UseGroup;
|
||||
}
|
||||
|
||||
_session->set_controls (route_list_to_control_list (rl, &Stripable::monitoring_control), (double) mc, gcd);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue