projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9990da3
)
Remove a group when the last track in the group is removed
author
Robin Gareus
<robin@gareus.org>
Thu, 10 Nov 2016 22:57:47 +0000
(23:57 +0100)
committer
Robin Gareus
<robin@gareus.org>
Thu, 10 Nov 2016 22:57:47 +0000
(23:57 +0100)
libs/ardour/session.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session.cc
b/libs/ardour/session.cc
index 7e96cefbf6263fc959874b9b98e80edb2439dcbf..0f4c5b4f735a66118398914fc9da125dca83d947 100644
(file)
--- 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<Route>
{
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<RouteList>