From ed105fdf668fde449f76cb7fe9981f1a5ca4fb69 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 29 Aug 2024 02:28:30 +0200 Subject: [PATCH] Allow to reactivate disable tracks in the editor Disabled tracks cannot be selected, so "apply to selection" does not work to reactivate track... unless it has just been deactivated. The Selection is not cleared when changing active state. --- gtk2_ardour/route_time_axis.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index ec11e11db9..41485e8d4c 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -883,7 +883,7 @@ RouteTimeAxisView::build_display_menu () i->set_inconsistent (true); } i->set_sensitive(! _session->transport_rolling() && ! always_active); - i->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::set_route_active), click_sets_active, true)); + i->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::set_route_active), click_sets_active, !_editor.get_selection().tracks.empty ())); items.push_back (SeparatorElem()); items.push_back (MenuElem (_("Hide"), sigc::bind (sigc::mem_fun(_editor, &PublicEditor::hide_track_in_display), this, true)));