From bf8aa66d9536f08c67b2accf7f973ec6b8c24076 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 29 Mar 2024 10:15:02 -0600 Subject: [PATCH] no context menus for solo, mute, rec-enable with livetrax --- gtk2_ardour/route_ui.cc | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index 340f945be3..9334234def 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -484,11 +484,13 @@ RouteUI::mute_press (GdkEventButton* ev) if (Keyboard::is_context_menu_event (ev)) { - if (mute_menu == 0){ - build_mute_menu(); - } + if (!Profile->get_livetrax()) { + if (mute_menu == 0){ + build_mute_menu(); + } - mute_menu->popup (ev->button, ev->time); + mute_menu->popup (ev->button, ev->time); + } return true; @@ -650,11 +652,13 @@ RouteUI::solo_press(GdkEventButton* ev) if (Keyboard::is_context_menu_event (ev)) { - if (solo_menu == 0) { - build_solo_menu (); - } + if (!Profile->get_livetrax()) { + if (solo_menu == 0) { + build_solo_menu (); + } - solo_menu->popup (ev->button, ev->time); + solo_menu->popup (ev->button, ev->time); + } } else { @@ -1025,7 +1029,7 @@ RouteUI::step_edit_changed (bool yn) bool RouteUI::rec_enable_release (GdkEventButton* ev) { - if (Keyboard::is_context_menu_event (ev)) { + if (!Profile->get_livetrax() && Keyboard::is_context_menu_event (ev)) { build_record_menu (); if (_record_menu) { _record_menu->popup (ev->button, ev->time); @@ -2880,4 +2884,3 @@ RouteUI::clear_time_domain (bool apply_to_selection) } } -