Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix actions on model items in browser
  • Loading branch information
nyalldawson committed Dec 13, 2017
1 parent 41fed33 commit af0e369
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/ProcessingPlugin.py
Expand Up @@ -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]

Expand Down

0 comments on commit af0e369

Please sign in to comment.