13
0

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:
Carl Hetherington 2011-01-06 01:05:26 +00:00
parent 10ead326e4
commit 699307400d

View File

@ -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