13
0

Prevent user from indirectly disabling LAN amp

This commit is contained in:
Robin Gareus 2021-05-19 01:57:31 +02:00
parent b167e6f2ed
commit 9d865f241d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2496,6 +2496,11 @@ ProcessorBox::processor_operation (ProcessorOperation op)
if (!boost::dynamic_pointer_cast<PluginInsert> (*i)) {
continue;
}
if (boost::dynamic_pointer_cast<Amp> (*i) && boost::dynamic_pointer_cast<Amp> (*i)->gain_control()->parameter().type() != GainAutomation) {
/* Trim, Volume */
continue;
}
#ifdef MIXBUS
if (boost::dynamic_pointer_cast<PluginInsert> (*i)->is_channelstrip()) {
continue;
@ -2588,6 +2593,11 @@ ProcessorBox::processor_button_release_event (GdkEventButton *ev, ProcessorEntry
processor = child->processor ();
}
if (boost::dynamic_pointer_cast<Amp> (processor) && boost::dynamic_pointer_cast<Amp> (processor)->gain_control()->parameter().type() != GainAutomation) {
/* Volume */
return false;
}
if (processor && Keyboard::is_delete_event (ev)) {
Glib::signal_idle().connect (sigc::bind (