diff options
author | Robin Gareus <robin@gareus.org> | 2016-01-13 18:01:39 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-01-13 18:01:39 +0100 |
commit | ed8c88d697db94b04c85cef9341aaee87d346f63 (patch) | |
tree | 66e3cba70714d2fdc111b71153ffe09e3d71eea4 | |
parent | b81504581b524b230e65b3fb10a991c576bd1c8f (diff) |
don't allow to delete AU presets in the UI
because the backend is not ready for this.
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 348b23b57f..9ae81a5920 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -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); |