mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix crash when requesting disk/in monitoring of busses
e.g. select the master-bus, use "D" or "I" keyboard shortcuts in the mixer window.
This commit is contained in:
parent
026069047d
commit
a3df0523b5
1 changed files with 5 additions and 0 deletions
|
|
@ -3915,6 +3915,11 @@ Mixer_UI::toggle_monitor_action (MonitorChoice monitor_choice, bool group_overri
|
|||
for (AxisViewSelection::iterator i = _selection.axes.begin(); i != _selection.axes.end(); ++i) {
|
||||
boost::shared_ptr<ARDOUR::Route> rt = boost::dynamic_pointer_cast<ARDOUR::Route> ((*i)->stripable());
|
||||
|
||||
if (!rt->monitoring_control ()) {
|
||||
/* skip busses */
|
||||
continue;
|
||||
}
|
||||
|
||||
if (rt->monitoring_control()->monitoring_choice() & monitor_choice) {
|
||||
mc = MonitorChoice (rt->monitoring_control()->monitoring_choice() & ~monitor_choice);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue