From 4692227168d094691c210db8394ab8bc48861d19 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 5 Sep 2024 20:16:55 +0200 Subject: [PATCH] Fix hiding of incactive tracks See ed105fdf668fde449f76cb7fe9981f1a5ca4fb69 for detailed explanation. --- 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 41485e8d4c..8f3e88ea18 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -886,7 +886,7 @@ RouteTimeAxisView::build_display_menu () 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))); + items.push_back (MenuElem (_("Hide"), sigc::bind (sigc::mem_fun(_editor, &PublicEditor::hide_track_in_display), this, !_editor.get_selection().tracks.empty ()))); if (_route && !_route->is_singleton ()) { items.push_back (SeparatorElem());