From 00bd50882e09460d627073e5c992312b5838597b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 23 May 2022 15:46:12 +0200 Subject: [PATCH] Mark speed UI controls insensitive if varispeed is not available --- gtk2_ardour/shuttle_control.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/shuttle_control.cc b/gtk2_ardour/shuttle_control.cc index 0d83e342c8..cf059b4f36 100644 --- a/gtk2_ardour/shuttle_control.cc +++ b/gtk2_ardour/shuttle_control.cc @@ -31,6 +31,7 @@ #include "ardour/ardour.h" #include "ardour/audioengine.h" #include "ardour/rc_configuration.h" +#include "ardour/port.h" #include "ardour/session.h" #include "gtkmm2ext/colors.h" @@ -765,7 +766,7 @@ ShuttleControl::parameter_changed (std::string p) delete shuttle_context_menu; shuttle_context_menu = 0; } else if (p == "external-sync") { - if (_session->config.get_external_sync()) { + if (_session->config.get_external_sync() || !Port::can_varispeed ()) { _vari_dialog.hide (); _vari_button.set_sensitive (false); if (shuttle_grabbed) {