mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Fix issue 8087 menu build when only one bus
If there is only one Foldback bus: the selection button still respond to left click. Any other click on the same button will need two clicks
This commit is contained in:
parent
2df52979d4
commit
feb689d220
1 changed files with 7 additions and 2 deletions
|
|
@ -1198,10 +1198,15 @@ gboolean
|
||||||
FoldbackStrip::name_button_button_press (GdkEventButton* ev)
|
FoldbackStrip::name_button_button_press (GdkEventButton* ev)
|
||||||
{
|
{
|
||||||
if (ev->button == 1) {
|
if (ev->button == 1) {
|
||||||
Menu* menu = build_route_select_menu ();
|
StripableList slist;
|
||||||
|
boost::shared_ptr<Route> previous = boost::shared_ptr<Route> ();
|
||||||
|
_session->get_stripables (slist, PresentationInfo::FoldbackBus);
|
||||||
|
if (slist.size () > 1) {
|
||||||
|
Menu* menu = build_route_select_menu ();
|
||||||
|
|
||||||
Gtkmm2ext::anchored_menu_popup(menu, &name_button, "",
|
Gtkmm2ext::anchored_menu_popup(menu, &name_button, "",
|
||||||
1, ev->time);
|
1, ev->time);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else if (ev->button == 3) {
|
} else if (ev->button == 3) {
|
||||||
Menu* r_menu = build_route_ops_menu ();
|
Menu* r_menu = build_route_ops_menu ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue