diff options
author | Robin Gareus <robin@gareus.org> | 2016-01-07 14:35:10 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-01-07 14:35:10 +0100 |
commit | 34244b3c69d8472853440b8030244e72d3e0baf0 (patch) | |
tree | fe6264684ada27a0f9c58788478f210a3e05efc1 | |
parent | 727d6128f17c03cc7bec69685a57487a015f2427 (diff) |
only show plugin context-menu if there is a selection
-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 d4c37c84f8..45299ba020 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -2381,7 +2381,10 @@ Mixer_UI::plugin_row_button_press (GdkEventButton *ev) selection->select(path); } } - popup_note_context_menu (ev); + ARDOUR::PluginPresetPtr ppp = selected_plugin(); + if (ppp) { + popup_note_context_menu (ev); + } } return false; } |