Fix send UI fader (#3708)
git-svn-id: svn://localhost/ardour2/branches/3.0@8506 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
169ad5b019
commit
db847eea33
@ -398,16 +398,14 @@ void
|
||||
GainMeterBase::gain_adjusted ()
|
||||
{
|
||||
if (!ignore_toggle) {
|
||||
if (_route) {
|
||||
if (_route->amp() == _amp) {
|
||||
if (_is_midi) {
|
||||
_route->set_gain (gain_adjustment.get_value(), this);
|
||||
} else {
|
||||
_route->set_gain (slider_position_to_gain (gain_adjustment.get_value()), this);
|
||||
}
|
||||
if (_route && _route->amp() == _amp) {
|
||||
if (_is_midi) {
|
||||
_route->set_gain (gain_adjustment.get_value(), this);
|
||||
} else {
|
||||
_amp->set_gain (slider_position_to_gain (gain_adjustment.get_value()), this);
|
||||
_route->set_gain (slider_position_to_gain (gain_adjustment.get_value()), this);
|
||||
}
|
||||
} else {
|
||||
_amp->set_gain (slider_position_to_gain (gain_adjustment.get_value()), this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user