Skip custom MIDNAM files in generic MTAV list
This commit is contained in:
parent
de02201056
commit
a83c6badfe
@ -374,6 +374,11 @@ MidiTimeAxisView::setup_midnam_patches ()
|
|||||||
// Build manufacturer submenu
|
// Build manufacturer submenu
|
||||||
for (MIDI::Name::MIDINameDocument::MasterDeviceNamesList::const_iterator n = m->second.begin();
|
for (MIDI::Name::MIDINameDocument::MasterDeviceNamesList::const_iterator n = m->second.begin();
|
||||||
n != m->second.end(); ++n) {
|
n != m->second.end(); ++n) {
|
||||||
|
|
||||||
|
if (patch_manager.is_custom_model (n->first)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Menu_Helpers::MenuElem elem = Gtk::Menu_Helpers::MenuElem(
|
Menu_Helpers::MenuElem elem = Gtk::Menu_Helpers::MenuElem(
|
||||||
n->first.c_str(),
|
n->first.c_str(),
|
||||||
sigc::bind(sigc::mem_fun(*this, &MidiTimeAxisView::model_changed),
|
sigc::bind(sigc::mem_fun(*this, &MidiTimeAxisView::model_changed),
|
||||||
@ -381,6 +386,10 @@ MidiTimeAxisView::setup_midnam_patches ()
|
|||||||
|
|
||||||
items.push_back(elem);
|
items.push_back(elem);
|
||||||
}
|
}
|
||||||
|
if (items.empty ()) {
|
||||||
|
delete menu;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Add manufacturer submenu to selector
|
// Add manufacturer submenu to selector
|
||||||
_midnam_model_selector.AddMenuElem(Menu_Helpers::MenuElem(m->first, *menu));
|
_midnam_model_selector.AddMenuElem(Menu_Helpers::MenuElem(m->first, *menu));
|
||||||
|
Loading…
Reference in New Issue
Block a user