13
0

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:
Carl Hetherington 2011-07-20 00:01:08 +00:00
parent c3bea354f8
commit 8c7fda11cf

View File

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