Allow clearing RoutePropertiesBox

This commit is contained in:
Robin Gareus
2025-08-24 15:01:35 +02:00
parent cca8de9d6c
commit 32325e84d7

View File

@@ -111,7 +111,12 @@ RoutePropertiesBox::set_route (std::shared_ptr<Route> r)
if (r == _route) {
return;
}
assert (r);
if (!r) {
drop_route ();
return;
}
_route = r;
_route_connections.drop_connections ();