don't allow to delete AU presets in the UI

because the backend is not ready for this.
This commit is contained in:
Robin Gareus 2016-01-13 18:01:39 +01:00
parent b81504581b
commit ed8c88d697

View File

@ -2392,7 +2392,10 @@ Mixer_UI::popup_note_context_menu (GdkEventButton *ev)
ARDOUR::PluginPresetPtr ppp = selected_plugin();
if (ppp && ppp->_preset.valid && ppp->_preset.user) {
items.push_back (MenuElem (_("Delete Preset"), sigc::mem_fun (*this, &Mixer_UI::delete_selected_preset)));
// we cannot currently delete AU presets
if (!ppp->_pip || ppp->_pip->type != AudioUnit) {
items.push_back (MenuElem (_("Delete Preset"), sigc::mem_fun (*this, &Mixer_UI::delete_selected_preset)));
}
}
m->popup (ev->button, ev->time);