summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-07-22 13:58:26 +0200
committerDavid Robillard <d@drobilla.net>2017-07-22 13:58:26 +0200
commitcc4a4db33f4d126a07a4a498e053c5fb9a883be3 (patch)
tree6d3548dc7a48c03fb7c2a1397b28993e9b96a9b1
parentb9520987749685cf19e253df9bebcc6fba0662ed (diff)
downloadingen-cc4a4db33f4d126a07a4a498e053c5fb9a883be3.tar.gz
ingen-cc4a4db33f4d126a07a4a498e053c5fb9a883be3.tar.bz2
ingen-cc4a4db33f4d126a07a4a498e053c5fb9a883be3.zip
Fix saving of learned MIDI bindings
-rw-r--r--src/server/RunContext.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/RunContext.cpp b/src/server/RunContext.cpp
index cebfdcfe..541f066d 100644
--- a/src/server/RunContext.cpp
+++ b/src/server/RunContext.cpp
@@ -122,9 +122,11 @@ RunContext::emit_notifications(FrameTime end)
if (key) {
_engine.broadcaster()->set_property(
note.port->uri(), Raul::URI(key), value);
- if (note.port->is_input() && note.key == uris.ingen_value) {
+ if (note.port->is_input() &&
+ (note.key == uris.ingen_value ||
+ note.key == uris.midi_binding)) {
// FIXME: not thread safe
- note.port->set_property(uris.ingen_value, value);
+ note.port->set_property(Raul::URI(key), value);
}
} else {
_engine.log().rt_error("Error unmapping notification key URI\n");