summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2016-01-08 20:21:58 -0800
committerRJ Ryan <rryan@mixxx.org>2016-01-08 20:21:58 -0800
commit0c9e4d065543ceb4a6048140e92ab9b336f72b0c (patch)
tree38f9f08574657825075e250452461e651397d67a /src
parent3dae24c6734aa97e126c2b19bbcbc06bb0e4ba11 (diff)
Use MidiKey constructor in DlgControllerLearning. Fixes Bug #1532297.
Diffstat (limited to 'src')
-rw-r--r--src/controllers/dlgcontrollerlearning.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/controllers/dlgcontrollerlearning.cpp b/src/controllers/dlgcontrollerlearning.cpp
index 2c1c09521d..0a7de0aacd 100644
--- a/src/controllers/dlgcontrollerlearning.cpp
+++ b/src/controllers/dlgcontrollerlearning.cpp
@@ -218,9 +218,10 @@ void DlgControllerLearning::slotMessageReceived(unsigned char status,
return;
}
- MidiKey key;
- key.status = status;
- key.control = control;
+ // NOTE(rryan): We intend to use MidiKey(status, control) here rather than
+ // setting fields individually since we will use the MidiKey with an input
+ // mapping. See Bug #1532297
+ MidiKey key(status, control);
// Ignore all standard MIDI System Real-Time Messages because they
// are continuously sent and prevent mapping of the pressed key.