From 32325e84d7a2b8962254f0807219d87061a85d7e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 24 Aug 2025 15:01:35 +0200 Subject: [PATCH] Allow clearing RoutePropertiesBox --- gtk2_ardour/route_properties_box.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/route_properties_box.cc b/gtk2_ardour/route_properties_box.cc index f4ea5aecdd..f5248b3b61 100644 --- a/gtk2_ardour/route_properties_box.cc +++ b/gtk2_ardour/route_properties_box.cc @@ -111,7 +111,12 @@ RoutePropertiesBox::set_route (std::shared_ptr r) if (r == _route) { return; } - assert (r); + + if (!r) { + drop_route (); + return; + } + _route = r; _route_connections.drop_connections ();