From 98d84550987100f1a080bd7df66c3b13b9a75384 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 23 Nov 2024 10:53:38 +0100 Subject: [PATCH] Fix crash when selecting VCA --- gtk2_ardour/selection_properties_box.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/selection_properties_box.cc b/gtk2_ardour/selection_properties_box.cc index 9fe5ee11a8..2631f2ac72 100644 --- a/gtk2_ardour/selection_properties_box.cc +++ b/gtk2_ardour/selection_properties_box.cc @@ -138,10 +138,16 @@ SelectionPropertiesBox::selection_changed () _time_info_box->hide (); } + bool show_route_properties = false; if (!selection.tracks.empty ()) { TimeAxisView *tav = selection.tracks.front (); RouteTimeAxisView *rtav = dynamic_cast(tav); - _route_prop_box->set_route (rtav->route()); + if (rtav) { + _route_prop_box->set_route (rtav->route()); + show_route_properties = true; + } + } + if (show_route_properties) { _route_prop_box->show(); } else { _route_prop_box->hide();