mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Special case MainOutVolume Amp processor in ProcBox
Do not allow to delete or disable the processor.
This commit is contained in:
parent
e9ff843bb1
commit
2b7b36be3e
1 changed files with 5 additions and 0 deletions
|
|
@ -177,6 +177,11 @@ ProcessorEntry::ProcessorEntry (ProcessorBox* parent, boost::shared_ptr<Processo
|
|||
if (boost::dynamic_pointer_cast<PeakMeter> (_processor)) {
|
||||
_button.set_elements(ArdourButton::Element(_button.elements() & ~ArdourButton::Indicator));
|
||||
}
|
||||
if (boost::dynamic_pointer_cast<Amp> (_processor) &&
|
||||
boost::dynamic_pointer_cast<Amp> (_processor)->gain_control()->parameter().type() != GainAutomation) {
|
||||
/* Trim, Volume */
|
||||
_button.set_elements(ArdourButton::Element(_button.elements() & ~ArdourButton::Indicator));
|
||||
}
|
||||
if (boost::dynamic_pointer_cast<UnknownProcessor> (_processor)) {
|
||||
_button.set_elements(ArdourButton::Element(_button.elements() & ~ArdourButton::Indicator));
|
||||
_unknown_processor = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue