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:
Charles Brunet 2020-11-11 12:02:46 -05:00 committed by GitHub
parent 100c793174
commit 4575decf6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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