summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-03-21 02:15:55 +0000
committerCarl Hetherington <carl@carlh.net>2012-03-21 02:15:55 +0000
commit189257dd329eeb8e8776e68075abf7a47ff7aa51 (patch)
treea44eec681896024fd0b23981ba6788452c418233
parent4c0b104db5518df931610089dae31849bc8d9cbb (diff)
Make toggle MIDIControllables with program changes only respond to the appropriate program change (part of #4780).
git-svn-id: svn://localhost/ardour2/branches/3.0@11739 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/surfaces/generic_midi/midicontrollable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaces/generic_midi/midicontrollable.cc b/libs/surfaces/generic_midi/midicontrollable.cc
index d9cd9425ae..ec586d3532 100644
--- a/libs/surfaces/generic_midi/midicontrollable.cc
+++ b/libs/surfaces/generic_midi/midicontrollable.cc
@@ -259,7 +259,7 @@ MIDIControllable::midi_sense_program_change (Parser &, byte msg)
if (!controllable->is_toggle()) {
controllable->set_value (midi_to_control (msg));
- } else {
+ } else if (msg == control_additional) {
controllable->set_value (controllable->get_value() > 0.5f ? 0.0f : 1.0f);
}