Skip to content
Permalink
Browse files

Fix actions on model items in browser

  • Loading branch information
nyalldawson committed Dec 13, 2017
1 parent 41fed33 commit af0e36983420311e9c7018894d6a07bc1042f513
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/ProcessingPlugin.py
@@ -130,10 +130,10 @@ def editModel(self):
dlg.loadModel(self.path())
dlg.show()

def actions(self):
run_model_action = QAction(QCoreApplication.translate('ProcessingPlugin', '&Run Model…'), self)
def actions(self, parent):
run_model_action = QAction(QCoreApplication.translate('ProcessingPlugin', '&Run Model…'), parent)
run_model_action.triggered.connect(self.runModel)
edit_model_action = QAction(QCoreApplication.translate('ProcessingPlugin', '&Edit Model…'), self)
edit_model_action = QAction(QCoreApplication.translate('ProcessingPlugin', '&Edit Model…'), parent)
edit_model_action.triggered.connect(self.editModel)
return [run_model_action, edit_model_action]

0 comments on commit af0e369

Please sign in to comment.
You can’t perform that action at this time.