mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 03:47:42 +01:00
when the last route is removed from a RouteGroup-with-VCA, drop weak ref to VCA
This commit is contained in:
parent
927e2d14dd
commit
a90edc3e1b
1 changed files with 4 additions and 0 deletions
|
|
@ -282,6 +282,10 @@ RouteGroup::remove (std::shared_ptr<Route> r)
|
|||
_sursend_enable_group->remove_control (r->surround_send ()->send_enable_control ());
|
||||
}
|
||||
routes->erase (i);
|
||||
if (routes->empty()) {
|
||||
group_master.reset ();
|
||||
_group_master_number = -1;
|
||||
}
|
||||
_session.set_dirty ();
|
||||
RouteRemoved (shared_from_this(), std::weak_ptr<Route> (r)); /* EMIT SIGNAL */
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue