mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Fix crash on selecting no route group in a mixer strip.
git-svn-id: svn://localhost/ardour2/branches/3.0@8456 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
10ead326e4
commit
699307400d
1 changed files with 8 additions and 1 deletions
|
|
@ -1329,10 +1329,17 @@ MixerStrip::comment_changed (void *src)
|
|||
}
|
||||
}
|
||||
|
||||
/** Set the route group for this strip's route, or remove it from its current group.
|
||||
* @param rg New RouteGroup, or 0.
|
||||
*/
|
||||
void
|
||||
MixerStrip::set_route_group (RouteGroup *rg)
|
||||
{
|
||||
rg->add (_route);
|
||||
if (rg) {
|
||||
rg->add (_route);
|
||||
} else if (_route->route_group ()) {
|
||||
_route->route_group()->remove (_route);
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue