Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] add object name to custom menus
  • Loading branch information
volaya committed May 6, 2016
1 parent e040cbd commit e6f1439
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/gui/menus.py
Expand Up @@ -156,7 +156,8 @@ def removeMenus():
def addAlgorithmEntry(alg, menuName, submenuName, actionText=None, icon=None, addButton=False):
action = QAction(icon or alg.getIcon(), actionText or alg.name, iface.mainWindow())
action.triggered.connect(lambda: _executeAlgorithm(alg))

action.setObjectName("mProcessingUserMenu_%s" % alg.commandLineName())

if menuName:
menu = getMenu(menuName, iface.mainWindow().menuBar())
submenu = getMenu(submenuName, menu)
Expand Down

0 comments on commit e6f1439

Please sign in to comment.