Fix incorrect assignment of MIDNAM device mode
This commit is contained in:
parent
e93150cb3f
commit
46277acb40
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user