Skip to content

Commit 4dec1b3

Browse files
committed
add command bugfix #298
1 parent 78f2fe2 commit 4dec1b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NodeGraphQt/base/menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ def add_command(self, name, func=None, node_type=None, node_class=None):
224224
for menu in node_menus:
225225
menu.addAction(action)
226226

227-
qaction = node_menu.addAction(action)
228-
command = NodeGraphCommand(self._graph, qaction, func)
227+
node_menu.addAction(action)
228+
command = NodeGraphCommand(self._graph, action, func)
229229
self._commands[name] = command
230230
self._items.append(command)
231231
return command

0 commit comments

Comments
 (0)