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
@ -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…
Reference in New Issue
Block a user