From: Robin Gareus Date: Thu, 10 Nov 2016 22:57:47 +0000 (+0100) Subject: Remove a group when the last track in the group is removed X-Git-Tag: 5.5~186 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=2f8ccb5732d8043537a424b52989d358f3289c61 Remove a group when the last track in the group is removed --- diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 7e96cefbf6..0f4c5b4f73 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -6265,6 +6265,10 @@ Session::route_removed_from_route_group (RouteGroup* rg, boost::weak_ptr { update_route_record_state (); RouteRemovedFromRouteGroup (rg, r); /* EMIT SIGNAL */ + + if (!rg->has_control_master () && !rg->has_subgroup () && rg->empty()) { + remove_route_group (*rg); + } } boost::shared_ptr