From 90d21161e75b61d9289ff0ac3b37f9a2cd89c301 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 7 May 2024 16:14:00 -0600 Subject: [PATCH] more correct implementation for RouteProcessorSelection::set (AxisView*) Suspending changes while clearing core selection stripables doesn't work correctly, because we are not notified of the change before attempting to add the argument. --- gtk2_ardour/route_processor_selection.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/route_processor_selection.cc b/gtk2_ardour/route_processor_selection.cc index 02eb39aacc..e7b24b49d0 100644 --- a/gtk2_ardour/route_processor_selection.cc +++ b/gtk2_ardour/route_processor_selection.cc @@ -172,9 +172,10 @@ RouteProcessorSelection::set (AxisView* r) if (!shp.session()) { return; } - PresentationInfo::ChangeSuspender cs; - shp.session()->selection().clear_stripables (); - add (r, true); + + StripableList sl; + sl.push_back (r->stripable()); + shp.session()->selection().set (sl); } bool