13
0

Fix incorrect assignment of MIDNAM device mode

This commit is contained in:
Paul Davis 2020-02-07 12:19:27 -07:00
parent e93150cb3f
commit 46277acb40

View File

@ -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))); _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()) { if (gui_property (X_("midnam-custom-device-mode")).empty()) {
custom_device_mode_changed(device_modes.front()); 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) { if (device_modes.size() > 1) {