Prevent item duplication in Node context menu (#1361)
* Prevent item duplication in Node context menu * Prevent duplicated items on Terminal context menu * try better solution to prevent item duplication
This commit is contained in:
parent
100c793174
commit
4575decf6f
@ -547,7 +547,7 @@ class GraphicsScene(QtGui.QGraphicsScene):
|
||||
|
||||
for m in menusToAdd:
|
||||
if isinstance(m, QtGui.QMenu):
|
||||
menu.addMenu(m)
|
||||
menu.addAction(m.menuAction())
|
||||
elif isinstance(m, QtGui.QAction):
|
||||
menu.addAction(m)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user