Don't pop up an empty menu over a patch change.
git-svn-id: svn://localhost/ardour2/branches/3.0@9909 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c3bea354f8
commit
8c7fda11cf
@ -153,7 +153,9 @@ CanvasPatchChange::on_event (GdkEvent* ev)
|
||||
initialize_popup_menus();
|
||||
_popup_initialized = true;
|
||||
}
|
||||
_popup.popup(ev->button.button, ev->button.time);
|
||||
if (!_popup.items().empty()) {
|
||||
_popup.popup(ev->button.button, ev->button.time);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user