only show plugin context-menu if there is a selection

This commit is contained in:
Robin Gareus 2016-01-07 14:35:10 +01:00
parent 727d6128f1
commit 34244b3c69
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}