summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-02-07 12:19:27 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-02-07 12:20:11 -0700
commit46277acb40c444139d9e898b7033991ac271e868 (patch)
tree3439550c0bd581c675786b72e7b937ebf2b77794 /gtk2_ardour/midi_time_axis.cc
parente93150cb3f337e70b1da4481ae0f3001e4ed66cd (diff)
Fix incorrect assignment of MIDNAM device mode
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index 7c7ef7b350..4e9af79c79 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -489,8 +489,12 @@ MidiTimeAxisView::model_changed(const std::string& model)
_midnam_custom_device_mode_selector.AddMenuElem (Gtk::Menu_Helpers::MenuElem(*i, sigc::bind(sigc::mem_fun(*this, &MidiTimeAxisView::custom_device_mode_changed), *i)));
}
- if (!device_modes.empty()) {
- custom_device_mode_changed(device_modes.front());
+ if (gui_property (X_("midnam-custom-device-mode")).empty()) {
+ if (!device_modes.empty()) {
+ custom_device_mode_changed (device_modes.front());
+ }
+ } else {
+ custom_device_mode_changed (gui_property (X_("midnam-custom-device-mode")));
}
if (device_modes.size() > 1) {