mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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
1 changed files with 6 additions and 8 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue