Commit 19cf49bc authored by Luke Campagnola's avatar Luke Campagnola
Browse files

fixed context menu handling for non-GraphicsItems

parent 23a0d6d7
......@@ -525,6 +525,8 @@ class GraphicsScene(QtGui.QGraphicsScene):
item = item.parentItem()
if item is None:
item = self
if not hasattr(item, "getContextMenus"):
subMenus = item.getContextMenus(event) or []
if isinstance(subMenus, list): ## so that some items (like FlowchartViewBox) can return multiple menus
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment